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

Fix issue with empty JSON object responses from network policy endpoints #990

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

GFriedrich
Copy link
Contributor

[resolves #969]

The issue here was a bit different than initially thought: The code works just fine for Jackson libraries up to version 2.9.7
From version 2.9.8 on the handling of "Void" type deserialization has been changed. This is due to FasterXML/jackson-databind#2197
By that the Jackson deserializer will return "null" instead of illegally instantiating the "Void" class via reflection. This in turn breaks the Reactor mapping as it doesn't allow null.
This PR will keep the backward compatibility with Jackson 2.9.7 and below, but will also make the code compatible to Jackson 2.9.8 and above.

@cfdreddbot
Copy link

✅ Hey GFriedrich! The commit authors and yourself have already signed the CLA.

@twoseat twoseat added this to the 3.16.0.RELEASE milestone Aug 16, 2019
@twoseat twoseat self-assigned this Aug 16, 2019
@twoseat twoseat merged commit 2dba29b into cloudfoundry:master Aug 16, 2019
twoseat added a commit that referenced this pull request Aug 16, 2019
@twoseat
Copy link
Contributor

twoseat commented Aug 16, 2019

Thanks for the fix @GFriedrich - this resolves an issue that I'd run into only hours earlier when testing #984, so couldn't have been better timed!

@GFriedrich GFriedrich deleted the feature/969 branch August 16, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NetworkingClient problem when handle response from CF security server
3 participants