Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2214

Search using trait attributes "!=" and "is not null" together and in order in string,boolean tag attribute filter comparison

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.0.0, 0.8.3
    • atlas-core
    • None

    Description

      1. Created a tag tag1 with attributes of all data types.
      2. Fired a basic search with tag1 and following tag filters of type string:
      a)string != rand
      b)string is not null
      POST body

      {  
         "excludeDeletedEntities":true,
         "entityFilters":null,
         "tagFilters":{  
            "condition":"AND",
            "criterion":[  
               {  
                  "attributeName":"string",
                  "operator":"neq",
                  "attributeValue":"rand"
               },
               {  
                  "attributeName":"string",
                  "operator":"not_null",
                  "attributeValue":""
               }
            ]
         },
         "attributes":null,
         "limit":25,
         "offset":0,
         "typeName":null,
         "classification":"tag1"
      }
      

      The search threw 500 Internal server exception. Attached the stack trace .

      Note :
      1)This exception is not seen if order is reversed (i.e) , in the order
      a)string is not null
      b)string != rand
      In this order , correct results are fetched.

      2)For string and boolean data types , this exception is seen. This was not seen with int , float, short , double , date , enum .

      3)Also , this issue is seen only in tag attribute filters and not in type attribute filters.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: