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

Nixon Rodrigues commented on ATLAS-2222:
----------------------------------------

+1 for the patch.

> UI: Search using entity and trait attributes - "," in string attribute filter 
> throws 400 Bad request
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2222
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2222
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-webui
>    Affects Versions: 1.0.0
>            Reporter: Sharmadha Sainath
>            Assignee: pratik pandey
>            Priority: Critical
>             Fix For: 1.0.0, 0.8.2
>
>         Attachments: ATLAS-2222.patch
>
>
> In UI , When string attribute filter contains comma , it is taken as separate 
> attribute filter.
> For example basic search : hive_table , filter : description = a , b 
> POST request body :
> {code}
> {  
>    "excludeDeletedEntities":true,
>    "entityFilters":{  
>       "condition":"AND",
>       "criterion":[  
>          {  
>             "attributeName":"description",
>             "operator":"eq",
>             "attributeValue":"a"
>          },
>          {  
>             "attributeName":"b",
>             "operator":"string"
>          }
>       ]
>    },
>    "tagFilters":null,
>    "attributes":[  
>    ],
>    "limit":25,
>    "offset":0,
>    "typeName":"hive_table",
>    "classification":null
> }
> {code}
> The search throws 400 Bad request with error notification "Attribute b not 
> found for type hive_table".
> This is seen only in UI ,as when search is fired with attributeValue given as 
> "a,b" using REST API , fetches correct results.
> {code}
> {  
>    "excludeDeletedEntities":true,
>    "entityFilters":{  
>       "condition":"AND",
>       "criterion":[  
>          {  
>             "attributeName":"description",
>             "operator":"eq",
>             "attributeValue":"a,b"
>          }
>       ]
>    },
>    "tagFilters":null,
>    "attributes":[  
>    ],
>    "limit":25,
>    "offset":0,
>    "typeName":"hdfs_path",
>    "classification":null
> }
> {code}
> CC : [~kevalbhatt] [~madhan.neethiraj] [~apoorvnaik]



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

Reply via email to