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

[jira] [Commented] (ATLAS-2080) Search using entity and trait attributes - tag filters are also added in the "attributes" list of the POST request body

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

Sharmadha Sainath commented on ATLAS-2080:
------------------------------------------

Verified by applying the patch on master. The tag filters are not added to the attributes list , only the entity filters are added.
+1

> Search using entity and trait attributes - tag filters are also added in the "attributes" list of the POST request body
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2080
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2080
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-webui
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: Keval Bhatt
>            Priority: Critical
>             Fix For: 0.9-incubating, 0.8.1-incubating
>
>         Attachments: ATLAS-2080.patch
>
>
> 1. Created a tag tag1 with attributes attrib1 (string) , attrib2 (int)
> 2. Fired basic search classification = tag1 and filters attrib1 = "random_str".
> 3. Search failed with 500 Internal server error . Because "attrib1" (which is a tag filter) was also considered as one of the attributes. Only attributes in the entity filters are expected to be added in the "attributes" list.
> {code}
> {
> "entityFilters":null,
> "tagFilters":{"condition":"AND","criterion":[{"attributeName":"attrib1","operator":"=","attributeValue":"random_str"}]},
> "attributes":["attrib1"],
> "query":null,
> "excludeDeletedEntities":true,
> "limit":25,
> "typeName":null,
> "classification":"tag1"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)