You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "pratik pandey (JIRA)" <ji...@apache.org> on 2017/11/01 10:41:00 UTC
[jira] [Assigned] (ATLAS-2222) UI: Search using entity and trait
attributes - "," in string attribute filter throws 400 Bad request
[ https://issues.apache.org/jira/browse/ATLAS-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
pratik pandey reassigned ATLAS-2222:
------------------------------------
Assignee: pratik pandey
> 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
> Reporter: Sharmadha Sainath
> Assignee: pratik pandey
> Priority: Critical
>
> 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)