atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharmadha Sainath (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-2222) UI: Search using entity and trait attributes - "," in string attribute filter throws 400 Bad request
Date Tue, 24 Oct 2017 13:27:00 GMT
Sharmadha Sainath created ATLAS-2222:
----------------------------------------

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

Mime
View raw message