Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-411

Fix bug in property condition evaluator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-1.5.5
    • None
    • None

    Description

      When querying using "exist" operator in Condition, an existQuery is created and sent to Elasticsearch. According to ES documentation, exist return false the the field in null or empty list - "[]".

      The case of an empty list wasn't handled in the eval() method of property condition evaluator. Need to return false if the field exist but has a value which is empty list.

      Attachments

        Activity

          People

            Unassigned Unassigned
            liusim Liat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h