mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #20074] [MERGED] fix: Fix handling of absolute paths for SQLCipher databases #48502
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/20074
Author: @Classic298
Created: 12/21/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (6)
08ddf0dsequentiald11de16Merge branch 'open-webui:dev' into dev66352dczero defaultc16aff0fix7acb389fix: preserve absolute paths in sqlite+sqlcipher URLs3e31cdcMerge branch 'open-webui:dev' into dev📊 Changes
2 files changed (+2 additions, -4 deletions)
View changed files
📝
backend/open_webui/internal/db.py(+1 -2)📝
backend/open_webui/internal/wrappers.py(+1 -2)📄 Description
Fixes: https://github.com/open-webui/open-webui/issues/20051#issuecomment-3678747823
Previously, the connection logic incorrectly stripped the leading slash from
sqlite+sqlcipherpaths, forcibly converting absolute paths (e.g.,sqlite+sqlcipher:////app/data.db) into relative paths (which becameapp/data.db). This caused database initialization failures when using absolute paths, such as with Docker volume mounts.This change removes the slash-stripping logic, ensuring that absolute path conventions (starting with
/) are respected while maintaining support for relative paths (which do not start with/).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.