Finding
DbPathResolver best-effort metadata probes only catch SqliteException.
Evidence
TryReadMetaString
TryReadIndexedFileSamples
- Both methods open/read SQLite metadata and catch only
SqliteException.
Risk
Invalid paths, inaccessible files, URI/path normalization problems, IOException, UnauthorizedAccessException, or other path-related exceptions can escape from what should be a best-effort diagnostic path.
Suggested fix
Catch the expected filesystem/path exception families around the open/read probe, keep the operation best-effort, and preserve useful diagnostics without crashing higher-level resolution.
Finding
DbPathResolverbest-effort metadata probes only catchSqliteException.Evidence
TryReadMetaStringTryReadIndexedFileSamplesSqliteException.Risk
Invalid paths, inaccessible files, URI/path normalization problems,
IOException,UnauthorizedAccessException, or other path-related exceptions can escape from what should be a best-effort diagnostic path.Suggested fix
Catch the expected filesystem/path exception families around the open/read probe, keep the operation best-effort, and preserve useful diagnostics without crashing higher-level resolution.