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

Filters with "or" condition between session/user conditions do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-1.1.0-incubating
    • None
    • None

    Description

      When passing the following condition in a filter :

      {
      "type": "booleanCondition",
      "parameterValues": {
      "operator": "or",
      "subConditions": [
      {
      "type": "profilePropertyCondition",
      "parameterValues":

      { "propertyName": "properties.firstName", "comparisonOperator": "equals", "propertyValue": "ffds" }

      },
      {
      "type": "geoLocationSessionCondition",
      "parameterValues":

      { "country": "AI" }

      }
      ]
      }
      }

      We receive an IllegalArgumentException . Any "or" condition between a session and profile condition will throw an exception. It should be possible to evaluate the condition on the current session, even the condition types are mixed.
      Note that it works if the operator is "and".

      Attachments

        Activity

          People

            draier Thomas Draier
            draier Thomas Draier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: