Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23787

Listing a Workspace variable via API over 10 does not display the next page

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 74
    • Hide

      I have released a fix that should patch the next links so they are now present and not resolving as 1.0 links

      Show
      I have released a fix that should patch the next links so they are now present and not resolving as 1.0 links

      Issue Summary

      When listing workspace variables that exceed the 10 default page limit, the page limit doesn't show the next URL.

      Steps to Reproduce

      1. Has more than 10 workspace variables
      2. Use List workspace variables endpoint

      Expected Results

      It will display the next URL for page 2.

      Actual Results

      It doesn't display the next URL for page 2.

      Workaround

      The workaround is to use the pagelen of 100 to show the list. If it's more than 100, the user can tweak and use the following URL to go to the next page:

      https://api.bitbucket.org/2.0/workspaces/<Workspace-ID>/pipelines-config/variables/?page=2
      

              cb097ec4865e Shirley Zhou
              mabdrahim Syahrul
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: