-
-
Notifications
You must be signed in to change notification settings - Fork 812
Allow TokenFIlter to skip last elements in arrays #882
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
Comments
Sounds reasonable. I'd be happy to merge, but need CLA first: will add a note on PR. |
@cowtowncoder should we close this issue manually? or will the team close this once the release is done? |
No, I need to close it since it didn't automatically do so. Closing done when fix merged for specific branch. Thanks! |
@cowtowncoder how frequent are jackson releases? I am wondering when the 2.14.2 might be released. |
It's the usual "when it's ready". Looking at: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.14.2 it's bit short list. But.... potentially I could release 2.14.2 in January, esp. since you have clear need and have provided patches. Oh and maybe I should make sure I get Woodstox 6.5.0 released too. |
while jackson 2.14.2 with FasterXML/jackson-core#882 is still not released we want to patch the jackson-core used by x-content with the modified class that fixes the bug #92480 closes #92480
while jackson 2.14.2 with FasterXML/jackson-core#882 is still not released we want to patch the jackson-core used by x-content with the modified class that fixes the bug elastic#92480 closes elastic#92480
When the last element in array is an array or object and that element is skipped, the
FilteringParserDelegate
will end up in a loop from which it cannot exit. This means that the rest of the input will be skipped too. This results in incorrect JSON.This behaviour exists since 2.9+
I believe this is due to 7db467d#diff-f6642caef61e0c403f51a6150ecf45263034fca5002782fd02eacd01e53fe549L694 where the
if (gotEnd)
conditions where removed.I think this should be added as currently the logic is:
and that means that it can only exit when
_headContext.isStartHandled()
is true. For skipped elements this is false.This can be easily reproduced with this testcase
cc @tvernum who coauthored the fix and the testcases
The text was updated successfully, but these errors were encountered: