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

Patch with object value omitted [DATAREST-885] #1255

spring-projects-issues opened this issue Sep 6, 2016 · 0 comments

Patch with object value omitted [DATAREST-885] #1255

spring-projects-issues opened this issue Sep 6, 2016 · 0 comments
type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Sep 6, 2016

Mathias D opened DATAREST-885 and commented

After migrating to spring data rest 2.5.2 the PATCH operation with application/json-patch+json for object values is broken.

Consider the following entity:

public class Product implements Identifiable<Long> {

    @GeneratedValue(strategy = IDENTITY)
    private Long id;

    private String name;

    private Gtin gtin;

public class Gtin {

    private String type;
    private String value;

I try to patch with the following payload.


As a result of this operation the property to update (gtin) is null. returns null because it receives a JsonMappingException as it tries to serialize the value json into the entity type.

Please see this product to reproduce the issue

Affects: 2.5.2 (Hopper SR2)

Reference URL:

Referenced from: pull request #223

Backported to: 2.5.3 (Hopper SR3)

1 votes, 1 watchers

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

No branches or pull requests

2 participants