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

[jira] [Commented] (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=15224676#comment-15224676 ] 

ATLAS QA commented on ATLAS-586:
--------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment
  http://issues.apache.org/jira/secure/attachment/12796850/rb45542.patch
  against master revision c1d4e7c.

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

    +1 checkstyle.  The patch generated 0 code style errors.

    {color:red}-1 findbugs{color}.  The patch appears to introduce 340 new Findbugs (version 2.0.3) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:red}-1 core tests{color}.  The patch failed these unit tests in :
 ./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.TypesJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.AdminJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.RexsterGraphJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.EntityJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.MetadataDiscoveryJerseyResourceIT
./webapp/target/failsafe-reports/TEST-org.apache.atlas.web.resources.HiveLineageJerseyResourceIT
./webapp/target/failsafe-reports/junitreports/TEST-org.apache.atlas.web.resources.HiveLineageJerseyResourceIT

Test results: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningsrepository.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningscommon.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningsnotification.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningswebapp.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningsclient.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningstypesystem.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningssqoop-bridge.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningshive-bridge.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningsstorm-bridge.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningshdfs-model.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//artifact/patchprocess/newPatchFindbugsWarningstitan.html
Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/123//console

This message is automatically generated.

> 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)