-
-
Notifications
You must be signed in to change notification settings - Fork 240
Support for StreamReadConstraints.maxDocumentLength #609
Copy link
Copy link
Open
Labels
3.xIssue planned for 3.x (and not 2.x)Issue planned for 3.x (and not 2.x)processing-limitsIssues related to limiting aspects of input/output that can be processed without exceptionIssues related to limiting aspects of input/output that can be processed without exception
Metadata
Metadata
Assignees
Labels
3.xIssue planned for 3.x (and not 2.x)Issue planned for 3.x (and not 2.x)processing-limitsIssues related to limiting aspects of input/output that can be processed without exceptionIssues related to limiting aspects of input/output that can be processed without exception
Type
Fields
Give feedbackNo fields configured for issues without a type.
https://github.com/FasterXML/jackson-core/blob/2.16/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java
First: some limits do work
maxTokenCountis enforced by XML parser itself, and
maxNumberLengthmaxStringLengthmaxNestingDepthare enforced by core
ParserMinimalBase.This leaves:
maxDocumentLengthWoodstox has its own way to enforce limits and users who need to enforce that should use jackson-dataformat-xml with woodstox as the XML Stream Reader. See https://cowtowncoder.medium.com/configuring-woodstox-xml-parser-woodstox-specific-properties-1ce5030a5173 and the part about P_MAX_ELEMENT_DEPTH.
maxDocumentLengthcould be enforced similarly - see P_MAX_CHARACTERS