open-webui/backend/open_webui/internal
Classic298 b3904b6ecb
fix: Fix handling of absolute paths for SQLCipher databases (#20074)
* sequential

* zero default

* fix

* fix: preserve absolute paths in sqlite+sqlcipher URLs

Previously, the connection logic incorrectly stripped the leading slash
from `sqlite+sqlcipher` paths, forcibly converting absolute paths
(e.g., `sqlite+sqlcipher:////app/data.db`) into relative paths
(which became `app/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 `/`).
2025-12-21 09:18:20 -05:00
..
migrations wip 2024-12-10 00:54:13 -08:00
db.py fix: Fix handling of absolute paths for SQLCipher databases (#20074) 2025-12-21 09:18:20 -05:00
wrappers.py fix: Fix handling of absolute paths for SQLCipher databases (#20074) 2025-12-21 09:18:20 -05:00