Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Link to next page in empty response

Đang mở
#392 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
api, authentication, backend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện request GET /admin/identities/{uuid-of-non-existent-identity}/sessions được mô tả trong issue và kiểm tra cách API xử lý identity không tồn tại cũng như việc tạo các liên kết phân trang của nó. Hoàn thành khi identity không tồn tại trả về 404 thay vì 200 với một mảng rỗng và không phát ra các liên kết first, next hoặc prev gây hiểu nhầm; thêm kiểm thử hồi quy nếu dự án cung cấp vị trí kiểm thử phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Shell
Star
96
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ory/network

Tất cả issue của ory/network

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.