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

Liat updated UNOMI-411:
-----------------------
    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.

  was:
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 profile 
property condition evaluator. Need to return false if the field exist but has a 
value which is empty list.


> Fix bug in property condition evaluator
> ---------------------------------------
>
>                 Key: UNOMI-411
>                 URL: https://issues.apache.org/jira/browse/UNOMI-411
>             Project: Apache Unomi
>          Issue Type: Bug
>            Reporter: Liat
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to