Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41372

Blue Ocean pagination API's "Link" response header contains duplicate "start" and "limit" params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • 1.0

      When making the following request to the REST API:

      http://localhost:8080/jenkins/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject,hudson.matrix.MatrixProject&filter=no-folders&start=0&limit=26
      

      The response contains a Link header with the following value:

      </jenkins/blue/rest/search/?q=type:pipeline;excludedFromFlattening:jenkins.branch.MultiBranchProject,hudson.matrix.MatrixProject&filter=no-folders&start=0&limit=26&start=26&limit=26>; rel="next"
      

      The "start" and "limit" parameters are duplicated, and following that link actually returns the same data set as the initial request. Presumably Stapler handles duplicate query param such that the first value "wins"?

      Note that this doesn't currently cause any bugs in the Blue Ocean UI as we manage the "start" and "limit" parameters manually. From that perspective it is a low priority bug.

            vivek Vivek Pandey
            cliffmeyers Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: