Endpoint: GET /workspaces/{workspace}/pipelines-config/variables
The API is incorrectly handling pagination, resulting in duplicate entries and an excessive number of pages. In a set of 20 retrieved items, only 12 unique variables exist; the remaining 8 are duplicates of the first 12.
The API continues to provide a nextLink far beyond the actual data set size. With 12 total unique variables and a pagelen=10, the expected behavior is for the nextLink to disappear after Page 2. Instead, the API continues to serve pages with decreasing pagelen values and redundant data:
pagelen=10 (Expected end of data)pagelen=2 on each page consisting of duplicate UUIDs.nextLink finally omitted.Welcome to the Bitbucket Cloud community!
I have tested this against my own workspace but have been unable to reproduce this on my end. I can view my full list of variables, which is free from duplicates.
To troubleshoot this further - we will need to see the API response specifically retrieved from your workspace. This requires us to have a formal support ticket for our system to allow us to grant ourselves the necessary access, and sharing the API output would not be appropriate as community is a public forum.
I can see that you're a member of a Premium workspace so you are entitled to support directly from our support team. Can you please raise a ticket directly with us so that we may assist you accordingly?
If you encounter issues raising a ticket - please let me know your timezone so that I may raise one on your behalf with the team that works within your business hours:
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.