Skip to content

report --db should normalize SQLite file URIs before filesystem checks #3148

Description

@Widthdom

Problem

cdidx report --db file:... does not follow the same SQLite file-URI normalization path used by query/database readers. It checks the raw string with File.Exists before opening SQLite, so valid file URIs can be reported as missing or shown inconsistently.

Evidence

  • ReportCommandRunner.BuildSchemaSummary(string dbPath) calls File.Exists(LongPath.EnsureWindowsPrefix(dbPath)) directly.
  • It then builds a SQLite connection from the same unnormalized value.

Suggested fix

Route report DB paths through the shared DB path resolver/URI normalizer, or explicitly reject unsupported URI forms with a structured error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions