Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Link to next page in empty response

Aperta
#392 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma

Direzione di ricerca

Inizia riproducendo la richiesta GET /admin/identities/{uuid-of-non-existent-identity}/sessions descritta nell’issue e analizza la gestione dell’API per un’identità mancante e la generazione dei relativi link di paginazione. Il lavoro è completato quando l’identità mancante restituisce 404 invece di 200 con un array vuoto e non emette link first, next o prev fuorvianti; aggiungi una copertura di regressione se il progetto fornisce una posizione di test pertinente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
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

Lingua principale
Shell
Stelle
96
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ory/network

Tutte le issue di ory/network

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.