Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1822 Search Query Builder and Faceted Search in Atlas
  3. 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

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 0.8.1, 1.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Basic search request with POST body fired using curl:

      {
      	"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
      }
      

      All the hdfs_path entities are fetched because invalid filter keys are ignored :

      Converted query string with 2 replacements: [v."__typeName":(hdfs_path) AND v."__state":ACTIVE] => [iyt_t:(hdfs_path) AND b2d_t:ACTIVE] (IndexSerializer:648)
      

      Same happens with invalid tag attribute filters also.
      This gives a delusion that all returned hdfs_path entities are satisfied by the filter condition.

        Attachments

          Activity

            People

            • Assignee:
              apoorvnaik Apoorv Naik
              Reporter:
              sharmadhas Sharmadha S
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: