mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #23109] [CLOSED] fix: handle None meta in FileMeta.sanitize_meta() to prevent API 500 errors #27033
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/23109
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: ❌ Closed
Base:
main← Head:fix/files-api-500-null-meta📝 Commits (1)
d88c531fix: handle None meta in FileMeta.sanitize_meta() to prevent API 500 error📊 Changes
1 file changed (+65 additions, -77 deletions)
View changed files
📝
backend/open_webui/models/files.py(+65 -77)📄 Description
Summary
Fix
Return empty dict {} instead of None for non-dict input in sanitize_meta()
Test Plan
Fixes #23101
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.