You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Smile streaming in WebFlux [SPR-16151] #20699
Jackson2SmileEncoder/Decoder declare "stream+x-jackson-smile" as a streaming MediaType, it doesn't seem to work by default. In my use case, we need binary encoding as we pass a lot a matrices and json just doesn't perform well for that case. CBOR would also be nice, if it came with a streaming option.
I have begin working on a fix (see this draft commit) but I am not 100% yet Smile stream non-blocking parsing is fully supported on Jackson and WebFlux codecs side.
I need to ask confirmation to the Jackson project lead, add integration tests, and review these changes with Arjen Poutsma, so let's plan that for 5.0.3.
Move getDecodableMimeTypes() to AbstractJackson2Decoder
Move getEncodableMimeTypes() to AbstractJackson2Encoder
Add support for application/stream+x-jackson-smile
Remove streaming line separator when pretty print is enabled or Smile encoder is used
Currently there is a low level error thrown by Jackson in JacksonStreamingIntegrationTests: JsonParseException: Still have 13 undecoded bytes, should not call 'feedInput'
Point has been raised on Jackson side, waiting for a feedback.
Tatu provided guidance that should allow us to update our implementation in order to make it work with Smile streaming (since it is not exactly the same than JSON).
Activity
spring-projects-issues commentedon Nov 21, 2017
Sébastien Deleuze commented
I have begin working on a fix (see this draft commit) but I am not 100% yet Smile stream non-blocking parsing is fully supported on Jackson and WebFlux codecs side.
I need to ask confirmation to the Jackson project lead, add integration tests, and review these changes with Arjen Poutsma, so let's plan that for 5.0.3.
spring-projects-issues commentedon Dec 18, 2017
Sébastien Deleuze commented
I have updated the branch which now contains the following changes:
getDecodableMimeTypes()toAbstractJackson2DecodergetEncodableMimeTypes()toAbstractJackson2Encoderapplication/stream+x-jackson-smileCurrently there is a low level error thrown by Jackson in
JacksonStreamingIntegrationTests:JsonParseException: Still have 13 undecoded bytes, should not call 'feedInput'Point has been raised on Jackson side, waiting for a feedback.
spring-projects-issues commentedon Dec 18, 2017
Sébastien Deleuze commented
I have created a dedicated issue on Jackson side: FasterXML/jackson-dataformats-binary#127
spring-projects-issues commentedon Jan 8, 2018
Sébastien Deleuze commented
I have moved this issue to 5.0.4 since Jackson issue is not fixed yet.
spring-projects-issues commentedon Jan 12, 2018
Sébastien Deleuze commented
I have provided a repro project as requested by Tatu. It should allow him to see if the issue is on Jackson side or in our
Jackson2Tokenizer.spring-projects-issues commentedon Jan 27, 2018
Sébastien Deleuze commented
Tatu provided guidance that should allow us to update our implementation in order to make it work with Smile streaming (since it is not exactly the same than JSON).