List routes answer 500 for a skip or page too large for the database
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Start with the handlers for /api/v1/rollout-schedules/, /api/v1/users/, /api/v1/metrics/errors, /api/v1/feature-flags/, and /api/v1/audit-logs/, then inspect the shared Query validation used for skip and page. Reproduce the failures with the provided curl request, and check the rollout-schedules status error branch for the parameter-name collision. Done means every affected list route returns a 422 response identifying the invalid parameter, including the rollout-schedules error branch, instead of a generic 500.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Sent:
GET /api/v1/rollout-schedules/?skip=9223372036854775808(any role). The same forskipon
GET /api/v1/users/(superuser),GET /api/v1/metrics/errorsandGET /api/v1/feature-flags/, and forpageon
GET /api/v1/audit-logs/(the offset is(page - 1) * limit). - Comes back: 500 with the generic error body. The offset reaches the query, and PostgreSQL stores an offset in a
64-bit integer, so anything from 2^63 up is refused.skip=9223372036854775807answers 200. - Expected: 422 naming the parameter, for example an upper bound on
skipandpage(le=on theQuery), the
same on every list route. - Also on
GET /api/v1/rollout-schedules/: thestatusfilter parameter has the same name as the module the
route's error branch uses for its status code, so that branch fails too (it still answers 500). - Reproduction (VIEWER):
curl -H "Authorization: Bearer <VIEWER token>" 'http://localhost:8000/api/v1/rollout-schedules/?skip=9223372036854775808'
Found by API fuzzing (a local run), reproduced by hand.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 4
- Merge trung bình
- 6 giờ 5 phút
- Pull request đã merge (30 ngày)
- 453
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 Controlvar/controlvar
-
Dashboard: an archived flag shows Off with an on/off switch the API refusesCó thể đã có người làm @amarkanday đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1748 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dashboard: the sequential panel's "Ready to stop" banner shows no sample-ratio-mismatch cautionCó thể đã có người làm @amarkanday đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Controlvar/controlvar#1737 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dashboard: a split URL draft's variant edit shows generic copy when the API refuses itCó thể đã có người làm @amarkanday đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Controlvar/controlvar#1562 · 1 bình luận ·
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 90/100
Controlvar/controlvar#1447 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Experiment setup: emptying a traffic share box and typing a number shows a leading zero ("034")Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Controlvar/controlvar#1428 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Controlvar/controlvar
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
micropython/micropython#19906 ·
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 82/100
FinanceFlash/unvibecode#597 ·
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 65/100
TomAnthony/YourOwnWeigh#21 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Compliance rules never see Unity Catalog views as viewsCó thể đã có người làm @wagnercsantos đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
databrickslabs/ontos#1348 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Deprecated datetime.utcnow() is called on every log line (DeprecationWarning on Python 3.12+)Đang mở
Độ 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 2 ngày