Files
hermes-agent/hermes_cli
salch-cred 793c07ffaf fix(backup): percent-encode path in _query_ro_sqlite URI
verify_sqlite_integrity() (now the source gate in _safe_restore_db) opens
the file through _query_ro_sqlite with a raw f"file:{path}?mode=ro" URI.
Under a path containing '#', SQLite treats the rest as a fragment: the
?mode=ro is dropped, the pre-'#' prefix is opened read-write (and created
empty), and the integrity check passes a corrupt source. Use
Path.as_uri(), matching the other restore-flow sites.

Salvaged from PR #123374.

Co-authored-by: joaomarcos <joaomarcosdias444@gmail.com>
2026-09-26 21:38:28 +05:30
..
…
…
…
…
…
…
…
…
…