Files
open-webui/backend/open_webui/models
Classic298 38a8dc9f32 fix: stop retaining every rejected profile image URL in memory (#29971)
Any signed-in user can grow Open WebUI's memory without bound by posting model entries with invalid profile image URLs. ModelMeta's validator keeps a set of every distinct rejected value so it warns about each one once, storing the full string with no size cap. FastAPI validates the request body before create_new_model reaches its workspace.models permission check, so the value is retained even when the caller is refused with a 401.

The set and the warning it served both go away; the validator clears the value exactly as before. The warning named no model and truncated the value at 80 characters, so it identified nothing. models/users.py swallows the identical ValueError and substitutes a fallback with no logging, so silence matches the neighbouring code.

Measured over the real create route with distinct 4KB invalid values: 8.9 MB retained at 2,000 values and 33.7 MB at 8,000 before, flat at 1.1 MB after.
2026-09-13 20:22:18 -04:00
..
2026-07-27 04:50:07 -04:00
2026-08-31 10:19:05 -04:00
2026-08-10 20:00:43 -06:00
2026-09-06 17:27:30 -04:00
2026-08-13 15:02:18 -06:00
2026-09-09 17:09:53 -04:00
2026-07-24 01:54:36 -04:00
2026-08-10 19:46:46 -06:00
2026-07-31 17:41:14 -04:00
2026-08-31 00:39:16 -04:00
2026-09-04 18:31:59 -04:00
2026-09-04 18:31:59 -04:00
2026-09-07 14:46:52 -04:00