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

jackson 2.16 support #564

Merged
merged 12 commits into from Jan 6, 2024
Merged

jackson 2.16 support #564

merged 12 commits into from Jan 6, 2024

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Aug 12, 2023

@pjfanning pjfanning marked this pull request as draft August 12, 2023 13:15
@pjfanning pjfanning changed the title [DRAFT] jackson 2.15 support jackson 2.15 support Oct 21, 2023
@pjfanning pjfanning marked this pull request as ready for review October 21, 2023 02:00
# these defaults are the same as the defaults in `StreamReadConstraints`
max-nesting-depth = 1000
max-number-length = 1000
max-string-length = 20000000
Copy link
Member

@He-Pin He-Pin Oct 21, 2023

Choose a reason for hiding this comment

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

read.constraints {
    max-nesting-depth = 1000
    max-number-length = 1000
    max-string-length = 20000000
}

Seems more clear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I honestly don't think adding the word constraints to the config names here makes them any clearer. Config names need to balance descriptiveness with conciseness.

@pjfanning pjfanning added this to the 1.1.0 milestone Nov 10, 2023
@pjfanning
Copy link
Contributor Author

jackson 2.16.0 should be out soon and it has some more constraints - I will repurpose this PR to further update to jackson 2.16.0 and support the extra constraints

@pjfanning pjfanning changed the title jackson 2.15 support jackson 2.16 support Nov 20, 2023
.maxNumberLength(config.getInt("read.max-number-length"))
.maxStringLength(config.getInt("read.max-string-length"))
.maxNameLength(config.getInt("read.max-name-length"))
.maxDocumentLength(config.getLong("read.max-document-length"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these configurations have default values, or users must specify the configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We ship reference conf with the defaults. Users can override the values by setting them in their own application.conf or application.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how Akka/Pekko has always worked.

@pjfanning
Copy link
Contributor Author

@He-Pin @mdedetrich is this something we can merge into main branch? Jackson 2.16 has quite a bit of security hardening.

@pjfanning
Copy link
Contributor Author

@mdedetrich if we are getting close to creating an RC for the M1 of pekko 1.1.0, I would like to get this merged.

@mdedetrich
Copy link
Contributor

Okay ill look at it in more detail tomorrow

Copy link
Contributor

@nvollmar nvollmar left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

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

Lgtm

max-name-length = 50000
# max-document-length of -1 means unlimited
max-document-length = -1
}
Copy link
Member

Choose a reason for hiding this comment

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

Add a blank line here

@pjfanning pjfanning merged commit 3f97d9f into apache:main Jan 6, 2024
18 checks passed
@pjfanning pjfanning deleted the jackson-2.15 branch January 6, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants