Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply an excessively permissive large string length limit by default #2601

Merged
merged 2 commits into from Apr 19, 2023

Conversation

carterkozak
Copy link
Contributor

@carterkozak carterkozak commented Apr 19, 2023

This allows us to bridge the difference between jackson 2.14 and 2.15 such that we are able to safely upgrade, even if the upgrade occurs before CJR is prepared to take the upgrade itself.

We will ratchet down the default over time.

==COMMIT_MSG==
Apply a large StreamReadConstraints maxStringLength to reduce friction in preparation for jackson 2.15 adoption
==COMMIT_MSG==

Possible downsides?

This is a very large value, nearly equivalent to no limit. However, we limit the total request size for structured data already.

Testing: It's difficult to test this change because we do not want to add a dependency on 2.15.0-rc3+, however I have verified that the new test fails without this patch, and passes once the patch has been applied.

This allows us to bridge the difference between jackson 2.14 and
2.15 such that we are able to safely upgrade, even if the upgrade
occurs before CJR is prepared to take the upgrade itself.

We will ratchet down the default over time.
@changelog-app
Copy link

changelog-app bot commented Apr 19, 2023

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Apply a large StreamReadConstraints maxStringLength to reduce friction in preparation for jackson 2.15 adoption

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link

@bjlaub bjlaub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bulldozer-bot bulldozer-bot bot merged commit 5ef5279 into develop Apr 19, 2023
5 checks passed
@bulldozer-bot bulldozer-bot bot deleted the ckozak/max-string-length branch April 19, 2023 15:25
@svc-autorelease
Copy link
Collaborator

Released 7.52.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants