boolean OR falsch ausgewertet, wenn alleine

Description

Bei einer Suche die Abfrage

<query numPerPage="20">
<conditions format="xml">
<boolean operator="or">
<condition field="state" operator="=" value="submitted"/>
<condition field="state" operator="=" value="published"/>
</boolean>
</conditions>
</query>

ausgewertet zu

q=%2Bstate%3A%22submitted%22+%2Bstate%3A%22published%22
welches eine AND-Verknüpfing ist

Das ist auch der Fall, wenn <boolean operator="or">... </boolean> in
<boolean operator="and">.. </boolean> eingeschlossen wird.

Jedoch nicht, wenn eine weitere einfache oder geschachtelte condition dahinter oder auch davor steht:
<query numPerPage="20">
<conditions format="xml">
<boolean operator="and">
<boolean operator="or">
<condition field="state" operator="=" value="submitted"/>
<condition field="state" operator="=" value="published"/>
</boolean>
<boolean operator="not">
<condition field="state" operator="=" value="wasUnmögliches"/>
</boolean>
</boolean>
</conditions>
</query>

Dieser Fehler hat also ein Workaround, aber trotzdem ...

Environment

mir-webapp-0.3-20150706.143801-288.war

Activity

Jens Kupferschmidt 
July 27, 2015 at 7:55 AM

fixed bug and JUnit test

Thomas Scheffler 
July 7, 2015 at 2:13 PM

fixed in trunk in r32791

Thomas Scheffler 
July 7, 2015 at 1:19 PM

fixed bug and JUnit test

Thomas Scheffler 
July 7, 2015 at 12:55 PM

added Junit test to demonstrate bug

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created July 7, 2015 at 10:22 AM
Updated July 30, 2015 at 1:23 PM
Resolved July 7, 2015 at 2:13 PM