-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
FilteringGeneratorDelegate
bug when filtering arrays (in 2.10.1)
#582
Comments
First of all: thank you for submitting this -- and I think you are right about analysis. Second of all: rats. It is very unfortunate regression; I wish I had realized the issue with the fix. One good thing is that at least it should get in 2.10.2 fix; I'll put this at the top of my work queue. |
I'll need to change a test little bit since core package can not depend on |
FilteringGeneratorDelegate
bug when filtering arrays (in 2.10.1)
Thanks for the quick fix ! |
Thank you reporting this! |
Since 2.10.1, it is not possible to filter out object arrays anymore.
The regression has been introduced by this (jackson-databind) commit which changed the array serialization implementation (more specifically the writeStartArray methods used):
FasterXML/jackson-databind@ca1867e
So it seems that the root cause is that the FilteringGeneratorDelegate (jackson-core) should override all JsonGenerator::writeStartArray methods.
Here is a maven project with 1 test class that reproduces the bug and offers a workaround :
filterGeneratorBug.zip
Test class :
The text was updated successfully, but these errors were encountered: