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

support for StreamReadConstraints #609

Open
pjfanning opened this issue Sep 11, 2023 · 0 comments
Open

support for StreamReadConstraints #609

pjfanning opened this issue Sep 11, 2023 · 0 comments
Labels
2.18 Issues planned at earliest for 2.18

Comments

@pjfanning
Copy link
Member

https://github.com/FasterXML/jackson-core/blob/2.16/src/main/java/com/fasterxml/jackson/core/StreamReadConstraints.java

In particular, the 2 new ones (in 2.16)

  • maxDocumentLength
  • maxNameLength

With maxNestingDepth, Woodstox has its own way to enforce that 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.

maxDocumentLength could be enforced similarly - see P_MAX_CHARACTERS

maxStringLength could be enforced using P_MAX_TEXT_LENGTH

@cowtowncoder cowtowncoder added the 2.16 For issues planned for 2.16 label Sep 12, 2023
@cowtowncoder cowtowncoder added 2.17 Issues planned at earliest for 2.17 and removed 2.16 For issues planned for 2.16 labels Oct 29, 2023
@pjfanning pjfanning added 2.18 Issues planned at earliest for 2.18 and removed 2.17 Issues planned at earliest for 2.17 labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.18 Issues planned at earliest for 2.18
Projects
None yet
Development

No branches or pull requests

2 participants