mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-08 10:13:22 -05:00
[PR #21577] [MERGED] fix: clamp SCIM pagination args instead of rejecting them #41776
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21577
Author: @monteithpj
Created: 2/18/2026
Status: ✅ Merged
Merged: 2/19/2026
Merged by: @tjbck
Base:
dev← Head:fix/scim-pagination-clamping📝 Commits (1)
2d612cafix: clamp SCIM pagination args instead of rejecting them📊 Changes
1 file changed (+13 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/scim.py(+13 -4)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devdevfix:Changelog Entry
Description
The
/Usersand/GroupsSCIM endpoints used FastAPIQueryconstraints (ge=1,le=100) to validatestartIndexandcount, causing a422 Unprocessable Entityfor out-of-range values. RFC 7644 §3.4.2.4 is explicit that these values must be clamped, not rejected:Fixed
GET /api/v1/scim/v2/UsersandGET /api/v1/scim/v2/Groupsnow clampstartIndexandcountto valid ranges rather than returning422for out-of-range values, in compliance with RFC 7644 §3.4.2.4Additional Information
Before — these all returned
422:After — all return
200with clamped values:startIndex=0→ treated as1count=-1→ treated as0(returns metadata only, per spec)count=9999→ clamped to server maximum of100Screenshots or Videos
N/A — backend-only fix, no UI changes.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.