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 array of scalar values in Jackson2Tokenizer [SPR-16407] #20953

Closed
spring-issuemaster opened this issue Jan 22, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Jan 22, 2018

Akshay Gupta opened SPR-16407 and commented

When using Spring Webflux's WebClient, it is not possible to deserialize a JSON array of integers using the bodyToFlux method. Spring returns an empty Flux. However, using bodyToMono to get a List<Integer> works and returns a Mono<List<Integer>> as expected.

I believe the problem lies in Jackson2Tokenizer's handling of this scenario. It returns an empty list of tokens. A variation of this issue was addressed in #20714. It addresses top-level scalar values returned as a JSON response. However, the fix for that still doesn't address the above scenario.

Original StackOverflow question


Affects: 5.0.3

Reference URL: https://github.com/Dolvic/spring-SPR-16407

Issue Links:

  • #20714 Support top-level scalar values in Jackson2Tokenizer

Referenced from: commits b474916

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 22, 2018

Akshay Gupta commented

Added a sample project to reproduce.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 22, 2018

Arjen Poutsma commented

Fixed, just in time for 5.0.3!

Thanks for spotting this, and the detailed report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.