Provide mechanism to configure XContent parsing constraints (after update to Jackson 2.15.0) #7549
Labels
enhancement
Enhancement or improvement to existing feature or request
v2.8.0
'Issues and PRs related to version v2.8.0'
v3.0.0
Issues and PRs related to version 3.0.0
Is your feature request related to a problem? Please describe.
The OpenSearch used to have no constants (at least officially) on maximum fields sizes that could be uploaded using supported XContent types (JSON/CBOR/YAML/Smile). Since Jackson 2.15.0, there are streaming constraints in place.
Describe the solution you'd like
Provide the way to alter Jackson 2.15.0 streaming constraints for supported XContent types. Since all factories are initialized statically, the suggestion is to use system property
opensearch.xcontent.string.length.max
. The default has also been increased from ~5Mb to ~50Mb.Describe alternatives you've considered
Lift the streaming constraints by setting the maximum string size to
Integer.MAX_VALUE
.Additional context
#7286
FasterXML/jackson-core#1001 (comment)
The text was updated successfully, but these errors were encountered: