[ https://issues.apache.org/jira/browse/ATLAS-2028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apoorv Naik resolved ATLAS-2028. -------------------------------- Resolution: Fixed > 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: Bug > Affects Versions: 0.9-incubating > Reporter: Sharmadha Sainath > Assignee: Apoorv Naik > 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 (v6.4.14#64029)