Jackrabbit Oak
  1. Jackrabbit Oak
  2. OAK-546

Query: unexpected result on negative limit / offset

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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".

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development