Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-546

Query: unexpected result on negative limit / offset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: core, jcr
    • Labels:
      None

      Description

      Currently, running a query with limit of -1 never returns any rows, the same as when using limit = 0.

      Either the query engine should fail with a negative limit or offset (IllegalArgumentException), or it should ignore negative values (unlimited result rows for limit, probably no offset for offset = -1).

      I would prefer IllegalArgumentException, but I can also live with -1 = unlimited, at least for "limit".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmueller Thomas Mueller
                Reporter:
                tmueller Thomas Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: