johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Sandtner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JOHNZON-172) JsonPatchBuilder issue for a partcuilar scenario
Date Tue, 22 May 2018 09:56:00 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Reinhard Sandtner resolved JOHNZON-172.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.8

fixed on master

[~Ravisankar Challa] can you give it a try pls... and thanks for reporting

> JsonPatchBuilder issue for a partcuilar scenario
> ------------------------------------------------
>
>                 Key: JOHNZON-172
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-172
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.7
>            Reporter: Ravisankar Challa
>            Assignee: Reinhard Sandtner
>            Priority: Major
>             Fix For: 1.1.8
>
>
> I am adding a failing test. org.apache.johnzon.core.JsonPointerImpl line 361 is causing
the issue.
> {code:java}
> @Test
> void test1() {
>        JsonProvider json = JsonProvider.provider();
>        JsonObject jsonObject = json.createReader(new StringReader("{" +
>                "    \"request\" : {" +
>                "        \"test\" : {}" +
>                "    }" +
>                "}")).readObject();
>        JsonPatchBuilder patchBuilder = json.createPatchBuilder();
>        JsonObject result = patchBuilder.add("/name", "ravi").build().apply(jsonObject);
>        assertEquals("{\"request\":{\"test\":{}},\"name\":\"ravi\"}", result.toString());
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message