open-webui/backend/open_webui
Patrick Monteith 27c76c677a
fix: clamp SCIM pagination args instead of rejecting them (#21577)
RFC 7644 §3.4.2.4 specifies that out-of-range pagination values MUST be
clamped, not rejected. The previous implementation used FastAPI Query
constraints (ge=1, le=100) which caused a 422 response for values like
startIndex=0 or count=9999 — violating the spec.

For both /Users and /Groups:
- startIndex < 1 is now treated as 1 (spec: "SHALL be interpreted as 1")
- count < 0 is now treated as 0 (spec: "SHALL be interpreted as 0")
- count > 100 is clamped to the server maximum of 100

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 15:08:42 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal chore: format 2026-02-11 16:24:11 -06:00
migrations refac: scim 2026-02-13 14:27:11 -06:00
models refac 2026-02-18 15:23:50 -06:00
retrieval Update utils.py (#21105) 2026-02-13 13:37:12 -06:00
routers fix: clamp SCIM pagination args instead of rejecting them (#21577) 2026-02-19 15:08:42 -06:00
socket refac 2026-02-15 18:41:16 -06:00
static refac 2025-08-10 00:02:58 +04:00
storage chore: format 2026-02-11 16:24:11 -06:00
test refac: defer profile 2026-02-13 14:08:07 -06:00
tools refac 2026-02-19 14:06:24 -06:00
utils refac 2026-02-19 14:14:36 -06:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-02-15 23:28:47 -06:00
constants.py feat/enh: optional password validation 2025-11-20 17:44:49 -05:00
env.py refac 2026-02-19 14:14:36 -06:00
functions.py chore: format 2026-02-11 16:24:11 -06:00
main.py refac 2026-02-16 13:10:01 -06:00
tasks.py refac 2026-02-12 15:29:34 -06:00