Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4013

GET parameters not added to pagination links except for page and size.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      5
    • Documentation Status:
      Needed

      Description

      When usgin the REST-API on Dspace 7, only "page" and "size" parameters are passed to the links. "filterValue", "sort", and "startsWith" are never passed, so the pagination breaks the use of additional parameters.

      My findings are in this wiki page: https://wiki.duraspace.org/pages/viewpage.action?pageId=104562967

      Steps to reproduce:

      Go to: http://localhost:8080/dspace-spring-rest/api/discover/search/objects?dsoType=item&sort=desc

      Embedded links don't have the sort param:

       "_links": {
      "next":

      { "href": "http://localhost:8080/dspace-spring-rest/api/discover/search/objects?dsoType=item&page=1&size=20" }

      ,
      "last":

      { "href": "http://localhost:8080/dspace-spring-rest/api/discover/search/objects?dsoType=item&page=1&size=20" }

      ,
      "self":

      { "href": "http://localhost:8080/dspace-spring-rest/api/discover/search/objects?dsoType=item" }

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pablop Pablo Prieto
                Reporter:
                pablop Pablo Prieto
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: