Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to next page in empty response #392

Open
3 of 5 tasks
kuntemat opened this issue Sep 5, 2024 · 0 comments
Open
3 of 5 tasks

Link to next page in empty response #392

kuntemat opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something is not working.

Comments

@kuntemat
Copy link

kuntemat commented Sep 5, 2024

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 kuntemat added the bug Something is not working. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant