Management API - Incorrect link headers on /devauth/devices/search

It seems the response headers received when making paginated requests to the device authentication endpoint at /v2/devauth/devices/search do not contain the appropriate links anymore.

For instance a request on /v2/devauth/devices/search?page=3&per_page=100 returned the following link header:
"link":"</api/management/v2/devauth/devices/search?page=1&per_page=100>; rel=\"first\", </api/management/v2/devauth/devices/search?page=2&per_page=100>; rel=\"prev\", </api/management/v2/devauth/devices/search?page=1&per_page=100>; rel=\"last\""

even though page 3 contains entries and there are subsequent pages as well. The next link is missing and the last link incorrectly points to page 1.

This affects the search page on the UI, which can now only displays the first page of results.

Hi @nritter,

Thanks for reaching out. This seems to be a bug in the exposed API. Can you please file it as a bug report so it gets picked up?

To access JIRA, you can use this link

Greetz,
Josef

Okay, I’ve submitted it.

1 Like