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

POST fails, when links : null [DATAREST-47] #434

Closed
spring-projects-issues opened this issue Sep 7, 2012 · 3 comments
Closed

POST fails, when links : null [DATAREST-47] #434

spring-projects-issues opened this issue Sep 7, 2012 · 3 comments
Labels
type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link

Johannes Hiemer opened DATAREST-47 and commented

Since the last update fixing the update problem with links, there is a new error. Doing a POST with empty links results in a:

org.springframework.http.converter.HttpMessageNotReadableException: Property 'links' is not of array type. Either eliminate this property from the document or make it an array.

Adding the links like this:
entity.setLinks(new ArrayList<LinkType>());
and it works, without any issues.

From my point of view it should also work with Links : null


Affects: 1.0.0.RC2

Referenced from: commits 143ae89

@spring-projects-issues
Copy link
Author

Jon Brisbin commented

New snapshots are available that will also ignore null values in the "links" property

@spring-projects-issues
Copy link
Author

Johannes Hiemer commented

Yep, works again. Thanks!

@spring-projects-issues
Copy link
Author

Jon Brisbin commented

Should be fixed in the latest RC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant