Link to next page in empty response
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ả
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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
- Send a GET request to https://{slug}.projects.oryapis.com/admin/identities/{uuid-of-non-existent-identity}/sessions
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ory/network
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
Updating native registration flow with OIDC ID token for existing identity returns breaking responseĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Ory Account Experience (hosted UI) registration trait setup via creation of registration flowĐang mởfeat
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
selfservice.flows.login.style reverts to identifier_first despite explicitly setting passwordĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
feat
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Issue tương tự
-
Update cliamp to 2.3.0Đang mởpackage-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
oSoWoSo/vOid_Community_repOsitory#203 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
alunduil/alunduil-chezmoi#809 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
catppuccin/kde#152 ·