spring-projects / spring-projects/spring-data-rest
Inconsistent PUT for update and for create when using JSON link objects for relations [DATAREST-55]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Manuel Santillan opened DATAREST-55 and commented
When you PUT a new resource, you can embed an object as explained in https://github.com/SpringSource/spring-data-rest/wiki/Embedded-Entity-references-in-complex-object-graphs
However, the same does not work for updating a resource to a new rel (i.e., changing the rel), and you must use instead as a workaround the text/uri-list form as explained in https://github.com/SpringSource/spring-data-rest/wiki/Example-API-usage-with-curl.
Affects: 1.0.0 GA
1 votes, 3 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PUT behavior described in DATAREST-55: create a resource with an embedded JSON relation, then update an existing resource to use a different relation. Compare this with the text/uri-list workaround and verify that both create and update handle JSON link objects consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100