[CAM-8071] Filter for due date and follow up date is not applied correctly in case of OR query Created: 26/Jul/17  Updated: 30/Aug/17  Resolved: 27/Jul/17

Status: Closed
Project: camunda BPM
Component/s: engine
Affects Version/s: 7.8.0-alpha2
Fix Version/s: 7.8.0, 7.8.0-alpha3

Type: Bug Report Priority: L3 - Default
Reporter: Svetlana Dorokhova Assignee: Svetlana Dorokhova
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes


 Description   

Steps to reproduce:

I have following user tasks:

  • tasks with due date set to today + 7 days
  • tasks without due date

When I create a filter with ALL instruction and with one criteria "Due After today + 8 days" -> I get empty result (CORRECT)
When I create a filter with ANY instruction and with the same single criteria -> I get the list of tasks for which due date is not null (WRONG)

These are the JSON payloads for filter creation:

{
  "id": "9703f13b-71fa-11e7-9974-0a0027000006",
  "name": "Or test",
  "resourceType": "Task",
  "query": {
    "dueAfter": "2017-08-05T10:00:00.000+0200"
  },
  "properties": {
    "priority": 0,
    "color": "#555555",
    "refresh": false,
    "showUndefinedVariable": false
  }
}

and

{
  "id": "9703f13b-71fa-11e7-9974-0a0027000006",
  "name": "Or test",
  "resourceType": "Task",
  "query": {
    "orQueries": [
      {
        "dueAfter": "2017-08-05T10:00:00.000+0200"
      }
    ]
  },
  "properties": {
    "priority": 0,
    "color": "#555555",
    "refresh": false,
    "showUndefinedVariable": false
  }
}

Expected behavior:
The filter must be applied correctly and both filters must return the same result (empty list in this case).


Generated at Wed Sep 20 16:43:51 CEST 2017 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.