You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2017/05/23 00:34:04 UTC

[jira] [Resolved] (ATLAS-1819) V2 APIs : Entity Resource GET query with classification returns 500.

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

Madhan Neethiraj resolved ATLAS-1819.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.8.1-incubating
                   0.9-incubating

Committed to the following branches:
 - master: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/35c77644
 - 0.8-incubating: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/a3a59183

> V2 APIs : Entity Resource GET query with classification returns 500.
> --------------------------------------------------------------------
>
>                 Key: ATLAS-1819
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1819
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8-incubating, 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: Ruchi Solani
>             Fix For: 0.9-incubating, 0.8.1-incubating
>
>         Attachments: ArrayOutOfBoundsException.txt, ATLAS-1819.patch
>
>
> 1. Created a tag tag1.
> 2. Created a table table1.
> 3. tag1 is *not associated* to table1
> The following query returns 500 Internal server error. 
> {code}
> /api/atlas/v2/entity/guid/<guid of table1>/classification/tag1
> {code}
> Exception thrown :
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> Attached the complete exception trace thrown in application logs.
> 4. Now created another tag tag2 and associated table1 to tag2.
> 5. Now the same query /api/atlas/v2/entity/guid/<guid of table1>/tag1 returns expected error code 404.
> That is , when any tag is already associated to the entity, search for the unassociated tag throws 404 , else 500.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)