atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (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 Wed, 20 Sep 2017 04:41:00 GMT

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

Madhan Neethiraj updated ATLAS-2028:
------------------------------------
    Issue Type: Sub-task  (was: Bug)
        Parent: ATLAS-1822

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

Mime
View raw message