Skip to content

Bug: "Drive ejected: Not a folder" error message after language change  #11203

Closed
@myfix16

Description

@myfix16

Description

When I changed Files' language from English (US) to Windows default (Chinese Simplified in my case), I got an error dialog with header 驱动器已弹出(Drive ejected) and message NotAFolder:
image

After I clicked "OK", I got a blank page.
image

I inspected the log file, and I thought the issue might be related to this exception:

2023-02-08 01:37:25.5644|WARN|NormalizePath|Home\
	System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.Uri..ctor(String uriString)
   at Files.App.Helpers.PathNormalization.NormalizePath(String path)

Steps To Reproduce

  1. Go to the Home page (which is important, since this bug only occurs when I am on the home page)
  2. Set Files' language to English (US)
  3. Change the language to Chinese Simplified in settings
  4. Click "restart for changes to take effect" and observe the bug

Steps to fix

  1. The error dialog should not happen after the language change.
  2. After restarting the app, I should get the content of the home page instead of a blank page.

Files Version

Version: 2.4.31.0

Windows Version

Windows 11 22H2 22623.1250 (Beta)

Log file

debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions