Skip to content

[Dashboard] Resolve relative persistence directories from the AppHost #19782

Closed

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hosting forwards a relative Dashboard data directory unchanged and launches the Dashboard with the managed bundle directory as its working directory. DashboardRunStore then resolves Path.GetFullPath(dataRoot) in that directory.

A path configured relative to the AppHost can therefore land under the installed or extracted Dashboard bundle, or fail when that location is read-only.

Expected Behavior

A relative data directory should resolve from a documented AppHost/project context, or persistent data directories should be required to be absolute.

Steps To Reproduce

  1. Configure an AppHost Dashboard data directory with a relative path such as ./dashboard-data.
  2. Start the AppHost using the bundled Dashboard.
  3. Inspect the resolved Dashboard database path.
  4. It is relative to the Dashboard binary's working directory rather than the AppHost.

Exceptions (if any)

The startup can fail when the resolved bundle location is read-only.

Aspire doctor output

Aspire CLI 13.6.0-pr.18924.g5ee63941
Windows 10.0.26200 and Ubuntu 24.04.3

Anything else?

Related to #18924. Source: src/Aspire.Hosting/Dashboard/DashboardEventHandlers.cs:284-326,615-623 and src/Aspire.Dashboard/ServiceClient/DashboardRunStore.cs:538-545. Previously raised during PR review and still present on current main.

Activity

  1. joperezr commented on Aug 28, 2026

    @joperezr
    Member
    🤖 Aspire triage pass — 2026-08-28 19:30 UTC

    Area: area-dashboard, area-hosting
    Kind: bug
    Repro: yes-minimal — see the Steps To Reproduce section
    Affected version(s): 13.6.0-pr.18924 (pre-release; feature unshipped — latest shipped line: 13.5.x)
    Severity: S3 — relative Dashboard data dir resolves against the bundle working dir and can fail when read-only; workaround: use an absolute path

    Urgency: ⚪ backlog — no milestone
    Reason: follow-up correctness bug on the in-development dashboard persistence feature (PR #18924, unshipped 13.6), spanning hosting + dashboard; not a regression vs a shipped release and has a workaround. Backlog while 13.6 stabilizes (open milestones: Backlog / 13.5.x / 13.6 / 14.0).

    Suggested owner(s): James Newton-King (@JamesNK) (primary), backup Adam Ratzman (@adamint)
    Evidence:

    Confidence: high
    Needs human?: no

  2. added a commit that references this issue on Nov 1, 2026
    1bccada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dashboardarea-hostingtriage:bot-seen

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions