network icon indicating copy to clipboard operation
network copied to clipboard

Link to next page in empty response

Open kuntemat opened this issue 1 year ago • 0 comments

Preflight checklist

Ory Network Project

https://stupefied-hofstadter-ynu7i1qy5i.projects.oryapis.com

Describe the bug

When I try listing sessions of an identity, but I use an identifier of a non-existent identity,

  • I get a successful 200 OK response (I'd expect 404),
  • the response contains a Link header with links to first, next and prev pages.

Reproducing the bug

  1. Send a GET request to https://{slug}.projects.oryapis.com/admin/identities/{uuid-of-non-existent-identity}/sessions
  2. Response i 200 OK, body contains an empty array, Link header contains links to first, next and prev pages.

Relevant log output

</admin/identities/175754a0-803a-4f92-b1f0-e6d71a844be7/sessions?page=0&page_size=250&page_token=eyJvZmZzZXQiOiIwIiwidiI6Mn0&per_page=250>; rel="first",</admin/identities/175754a0-803a-4f92-b1f0-e6d71a844be7/sessions?page=1&page_size=250&page_token=eyJvZmZzZXQiOiIyNTAiLCJ2IjoyfQ&per_page=250>; rel="next",</admin/identities/175754a0-803a-4f92-b1f0-e6d71a844be7/sessions?page=-1&page_size=250&page_token=eyJvZmZzZXQiOiItMjUwIiwidiI6Mn0&per_page=250>; rel="prev"

Relevant configuration

No response

Version

On which operating system are you observing this issue?

None

In which environment are you deploying?

Ory Network

Additional Context

No response

kuntemat avatar Sep 05 '24 10:09 kuntemat