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

Madhan Neethiraj updated ATLAS-2028:
------------------------------------
    Fix Version/s: 0.8.1
                   1.0.0

> Basic query with entity and tag filters : Invalid filter keys for type and 
> tags attributes are ignored and fetches all entities of the type / associated 
> to the tag
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2028
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2028
>             Project: Atlas
>          Issue Type: Sub-task
>    Affects Versions: 1.0.0
>            Reporter: Sharmadha Sainath
>            Assignee: Apoorv Naik
>            Priority: Major
>             Fix For: 0.8.1, 1.0.0
>
>         Attachments: 
> 0001-ATLAS-2028-Invalid-attributes-in-Basic-search-reques.patch
>
>
> Basic search request with POST body fired using curl:
> {code}
> {
>       
> "entityFilters":{"condition":"AND","criterion":[{"attributeName":"invalid_attr","operator":"=","attributeValue":"userdir"}]},
>       "tagFilters":null,
>       "attributes":null,
>       "query":null,
>       "excludeDeletedEntities":true,
>       "limit":25,
>       "typeName":"hdfs_path",
>       "classification":null
> }
> {code}
> All the hdfs_path entities are fetched because invalid filter keys are 
> ignored :
> {code}
> Converted query string with 2 replacements: [v."__typeName":(hdfs_path) AND 
> v."__state":ACTIVE] => [iyt_t:(hdfs_path) AND b2d_t:ACTIVE] 
> (IndexSerializer:648)
> {code}
> Same happens with invalid tag attribute filters also.
> This gives a delusion that all returned hdfs_path entities are satisfied by 
> the filter condition.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to