You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Kantor (JIRA)" <ji...@apache.org> on 2016/04/07 15:04:25 UTC

[jira] [Comment Edited] (ATLAS-586) While updating the multiple attributes, Atlas returns the response with escape characters.

    [ https://issues.apache.org/jira/browse/ATLAS-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230198#comment-15230198 ] 

David Kantor edited comment on ATLAS-586 at 4/7/16 1:03 PM:
------------------------------------------------------------

These changes have been reviewed and there is a vote for committal. If there are no further reviews to be done, please commit these changes as we have users who are waiting on the fix.


was (Author: dkantor):
These changes have been reviewed and there is a vote for committal. If there are no further reviews to be done, please commit these changes as we have users who are waiting the fix.

> While updating the multiple attributes, Atlas returns the response with escape characters.
> ------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-586
>                 URL: https://issues.apache.org/jira/browse/ATLAS-586
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Ankur Verma
>            Assignee: David Kantor
>             Fix For: 0.7-incubating
>
>         Attachments: rb45542.patch, updateInstances.json
>
>
> When updating an Atlas entity using the PUT operation on the entities resource, Atlas returns the response entity with escape characters in the definition property value, which causes a JsonSyntaxException when using GSON to convert the entity string to a Java object.
> $ curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -d @updateInstances.json http://localhost:21000/api/atlas/entities
> {"requestId":"qtp-897180322-29 - 764c42a3-6b94-47dc-825f-85ebb12fa9ea","GUID":["a8101113-52e3-445d-b30f-96b8cfd99c8d"],"definition":"{\n \"jsonClass\":\"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference\",\n \"id\":{\n \"jsonClass\":\"org.apache.atlas.typesystem.json.InstanceSerialization$_Id\",\n \"id\":\"a8101113-52e3-445d-b30f-96b8cfd99c8d\",\n \"version\":0,\n \"typeName\":\"UpdateInstancesPackage_Account\"\n },\n \"typeName\":\"UpdateInstancesPackage_Account\",\n \"values\":{\n \"signators\":null,\n \"number\":\"acc1\",\n \"omContainerId\":null,\n \"omDeleted\":false,\n \"omCreatedByUser\":\"oms\",\n \"lastModified\":null,\n \"balance\":5000.0,\n \"omModificationTimestamp\":\"2016-03-22T19:45:05.445Z\",\n \"omOptimisticLockId\":0,\n \"omModifiedByUser\":\"oms\",\n \"omCreationTimestamp\":\"2016-03-22T19:45:05.445Z\",\n \"props\":null,\n \"recentDeposits\":null,\n \"recentDepositAmounts\":null\n },\n \"traitNames\":[\n \n ],\n \"traits\":{\n \n }\n}"}
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)