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:
- Page 2:
pagelen=10 (Expected end of data) - Pages 3–6: Returns
pagelen=2 on each page consisting of duplicate UUIDs. - Page 6:
nextLink finally omitted.