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
kalinwilson opened DATAREST-1425 and commented
At line 321 of RepositoryPropertyReferenceController.java:
if (source.getLinks().hasSingleLink())
should be
if (!source.getLinks().hasSingleLink())
Correct requests with a single URI fail due to incorrect condition. Previous versions of the code used
if (source.getLinks().size() != 1)
This makes the current version unusable for one-to-one and one-to-many relationships in resource/entity models.
Affects: 3.2 RC3 (Moore)
Reference URL: https://github.com/spring-projects/spring-data-rest/blob/master/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.java#L321
The text was updated successfully, but these errors were encountered:
odrotbohm
No branches or pull requests
kalinwilson opened DATAREST-1425 and commented
At line 321 of RepositoryPropertyReferenceController.java:
should be
Correct requests with a single URI fail due to incorrect condition. Previous versions of the code used
This makes the current version unusable for one-to-one and one-to-many relationships in resource/entity models.
Affects: 3.2 RC3 (Moore)
Reference URL: https://github.com/spring-projects/spring-data-rest/blob/master/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryPropertyReferenceController.java#L321
The text was updated successfully, but these errors were encountered: