Skip to content

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

Merged
bulldozer-bot[bot] merged 2 commits into
developfrom
ckozak/max-string-length
Apr 19, 2023
Merged

bulldozer-bot[bot] merged 2 commits into
developfrom
ckozak/max-string-length

Conversation

@carterkozak

@carterkozak carterkozak commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

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

changelog-app Bot commented Apr 19, 2023 •

Copy link
Copy Markdown

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

@bjlaub bjlaub left a comment

Copy link
Copy Markdown
Contributor

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
@bulldozer-bot
bulldozer-bot Bot deleted the ckozak/max-string-length branch April 19, 2023 15:25
@svc-autorelease

Copy link
Copy Markdown
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.

4 participants