Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-644

setOneIndexedParameters and setFallbackPageable don't work together

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: 1.9.2 (Evans SR2)
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      I think there's a bug or at least an inconsistency in the implementation of PageableHandlerMethodArgumentResolver. When calling

      resolver.setOneIndexedParameters(true);
      resolver.setFallbackPageable(new PageRequest(1, 10));
      

      I should get the first page of my result set when falling back to the defaults. Instead the second page is returned.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            d.freudenberger Daniel Freudenberger
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: