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

Cannot remove an element of an array using JSON Patch request [DATAREST-537] #913

spring-projects-issues opened this issue May 8, 2015 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented May 8, 2015

Istvan Ratkai opened DATAREST-537 and commented

The ||JsonPatchHandler}} applies a customization to remove operations. Instead of removing the node, it replace it with a null object. It works well for objects, but it doesn't for elements of an array. The element won't be removed from the array, instead it will be replaced with a null object.

I think if the path of the remove operation defines an element of an array, the original remove operation should be used instead of the customized ReplaceOperation

Affects: 2.2.2 (Evans SR2), 2.3 GA (Fowler)

Backported to: 2.3.1 (Fowler SR1), 2.2.3 (Evans SR3)

Copy link

@spring-projects-issues spring-projects-issues commented May 9, 2015

Oliver Drotbohm commented

That's fixed in the latest snapshots. Back-ported to Fowler and Evans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants