Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4294

Improve handling of meaningless API range queries

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4.0, 7.4.0-alpha3
    • Component/s: engine
    • Labels:
      None

      Description

      Examples:

      • jobQuery.priorityHigherThanOrEquals(5).priorityLowerThanOrEquals(3)
      • jobQuery.duedateLowerThan(yesterday).duedateHigherThan(tomorrow)
      • taskQuery.taskMinPriority(4).taskMaxPriority(2)

      For all of these queries, it is apparent that the result set will be empty. These queries can be improved in one of the following two ways:

      • validate the input (reasoning: make the user as soon as possible aware of a meaningless query)
      • avoid the SQL query at all and just return an empty list

      Current state: no validation is made, but the query executed anyways

      Pull request for solution option 2: https://github.com/camunda/camunda-bpm-platform/pull/166/files

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thorben.lindhauer Thorben Lindhauer
              Reporter:
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: