Closed Bug 1994700 Opened 9 months ago Closed 6 months ago

Accessing, editing or deleting profiles fails when the original profile has a custom location

Categories

(Toolkit :: Startup and Profile System, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
148 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- disabled
firefox144 --- wontfix
firefox145 --- wontfix
firefox146 --- wontfix
firefox147 --- wontfix
firefox148 --- verified

People

(Reporter: sbadau, Assigned: mossop)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [fidefe-profile-management])

Attachments

(1 file)

Found in

  • Nightly 146.0a1

Affected versions

  • Nightly 146.0a1
  • Firefox 145.0b2
  • Firefox 144
  • Firefox 140.4.0 esr

Tested platforms

  • Affected platforms: Windows 11, Ubuntu 25.04 and macOS 15.

Preconditions

  • Create a new profile using the Profile Manager and set a custom location for it (e.g. a folder on the Desktop).

Steps to reproduce

  1. Open Firefox with the profile from the preconditions and create two switchable profiles (Profile A and Profile B).
  2. In the original profile, click Manage Profile.
  3. Delete Profile A.
  4. Close the original profile.
  5. Close Profile B.
  6. Launch Firefox, and from the Profile Selector, click on the original profile.

Expected result

  • In step 3 - Profile A should be deleted.
  • In step 6 - the Original Profile should be launched successfully.

Actual result

  • In step 3 - Profile A is not deleted nothing happens when clicking the Delete Button.
  • In step 6 - the original profile cannot be accessed, deleted, or edited. For more details please see the screen recording.

Regression range

  • Not a regression, reproducible on all Firefox versions.

Additional notes

  • This is the error caught in the Browser Console:
    Uncaught (in promise) DOMException: PathUtils.joinRelative: Could not append to path: NS_ERROR_FILE_UNRECOGNIZED_PATH

Hey :mossop - I'm not sure how to categorize the severity here. I'm curious, do we have similar bugs with the toolkit profile service? I suppose it might be due to using relative paths in the database--but we use relative paths in profiles.ini too. Not a MAX_PATH bug, since it occurs on platforms other than windows.

Flags: needinfo?(dtownsend)

Particularly now that we support migrating profiles from profiles.ini we have to support paths outside of the expected location. I think we just need to replace the use of joinRelative which doesn't support .. components.

Assignee: nobody → dtownsend
Severity: -- → S2
Flags: needinfo?(dtownsend)
Blocks: 1996240
Depends on: 2004950
Attachment #9527788 - Attachment description: WIP: Bug 1994700: Use paths in the profiles database as relative descriptors and support absolute paths. r=#profiles-reviewers! → Bug 1994700: Use paths in the profiles database as relative descriptors and support absolute paths. r=#profiles-reviewers!
Attachment #9527788 - Attachment description: Bug 1994700: Use paths in the profiles database as relative descriptors and support absolute paths. r=#profiles-reviewers! → Bug 1994700: Correctly resolve relative paths from the database. r=#profiles-reviewers!
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

QA Whiteboard: [S3][qa-found-in-c145] → [S3][qa-found-in-c145] [qa-triage-done-c149/b148] [qa-ver-needed-c149/b148]
Flags: qe-verify+
QA Contact: sbadau

Verified as fixed using the latest Firefox 148.0b4 and Nightly 149.0a1 on Windows 11 x64, macOS 15 and Ubuntu 24.04 - accessing, editing or deleting profiles doesn't fail anymore when the original profile has a custom location.

Status: RESOLVED → VERIFIED
QA Whiteboard: [S3][qa-found-in-c145] [qa-triage-done-c149/b148] [qa-ver-needed-c149/b148] → [S3][qa-found-in-c145] [qa-triage-done-c149/b148] [qa-ver-done-c149/b148]
Flags: qe-verify+
Duplicate of this bug: 2015242
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: