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-2028) 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
Date Tue, 08 Aug 2017 11:38:00 GMT
Sharmadha Sainath created ATLAS-2028:
----------------------------------------

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


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)

Mime
View raw message