spring-projects / spring-data-rest

Simplifies building hypermedia-driven REST web services on top of Spring Data repositories
https://spring.io/projects/spring-data-rest
Apache License 2.0
916 stars 562 forks source link

Errors.reject() fails with NotReadablePropertyException when rejecting 'null' values [DATAREST-1163] #1529

Closed spring-projects-issues closed 6 years ago

spring-projects-issues commented 6 years ago

David Siro opened DATAREST-1163 and commented

Any validation that rejects null value subsequently fails when building the validation output.

The problem could be hunted down to org.springframework.data.rest.core.ValidationErrors#getValue that throws above-mentioned exception when PropertyAccessor reads the null value.


Affects: 3.0.2 (Kay SR2)

Issue Links:

Referenced from: commits https://github.com/spring-projects/spring-data-rest/commit/1ebdeb95892cf6821992f1678e93c6a8cb6c0bef, https://github.com/spring-projects/spring-data-rest/commit/e74491238600a166a939c8f47cca55862082b4b3

Backported to: 3.0.3 (Kay SR3)

spring-projects-issues commented 6 years ago

Oliver Drotbohm commented

Thanks for spotting this. Should be fixed in Kay and Lovelace branches

spring-projects-issues commented 6 years ago

David Siro commented

Great, thank you for the fix, when do you expect 3.0.3 (Kay SR3) to be released?

spring-projects-issues commented 6 years ago

Oliver Drotbohm commented

We're usually tying bugfix releases to the Spring Boot ones. Unfortunately SR2 was just release two days ago, so it might take a while :/