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

Add new StreamReadConstraints (maxTokenCount) to limit maximum number of Tokens allowed per document #1310

Closed
cowtowncoder opened this issue Jun 15, 2024 · 1 comment
Labels
2.18 Issues planned at earliest for 2.18 processing-limits Issues related to limiting aspects of input/output that can be processed without exception
Milestone

Comments

@cowtowncoder
Copy link
Member

As discussed in FasterXML/jackson#231 (reply in thread) it would be useful to allow limiting of input content as indicated by number of tokens -- in addition to already existing limits as of Jackson 2.17 (maximum length in bytes/chars; maximum nesting depth; maximum property name length; maximum number/text token lengths).

@cowtowncoder cowtowncoder added the performance Issue related to performance problems or enhancements label Jun 15, 2024
@cowtowncoder cowtowncoder added the 3.x Issues to be only tackled for Jackson 3.x, not 2.x label Jun 18, 2024
@cowtowncoder cowtowncoder added this to the 3.0.0 milestone Jun 18, 2024
@cowtowncoder
Copy link
Member Author

Fixed via #1296: will be in 2.18.0

@cowtowncoder cowtowncoder added 2.18 Issues planned at earliest for 2.18 and removed 3.x Issues to be only tackled for Jackson 3.x, not 2.x labels Jun 19, 2024
@cowtowncoder cowtowncoder modified the milestones: 3.0.0, 2.18.0 Jun 19, 2024
@cowtowncoder cowtowncoder added processing-limits Issues related to limiting aspects of input/output that can be processed without exception and removed performance Issue related to performance problems or enhancements labels Jun 19, 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 processing-limits Issues related to limiting aspects of input/output that can be processed without exception
Projects
None yet
Development

No branches or pull requests

1 participant