Skip to content

Error for Windows invalid file names should indicate the invalid character or name part #8968

Closed

Description

@Finomosec

I get the error "name is invalid, contains Windows reserved character (?, *, etc.)"
for this file name:
"Arnold Schoenberg (1874-1951) - Verklärte Nacht (Transfigured Night), Op. 4 (1899).mp3"

The file comes from an android phone and should be synced to Windows 10.
I don't see any problem with the file name. I even checked: I can create a file in Windows with that name.

Version: v1.23.0, Windows 10 (64-bit Intel/AMD)

Looks like a bug to me.

Activity

  1. added
    bug
    needs-triage
    on Jul 6, 2023
  2. Finomosec commented on Jul 6, 2023

    @Finomosec
    ContributorAuthor

    grafik

  3. Finomosec commented on Jul 6, 2023

    @Finomosec
    ContributorAuthor

    grafik

  4. bt90 commented on Jul 6, 2023

    @bt90
    Contributor

    Trailing space?

  5. Finomosec commented on Jul 6, 2023

    @Finomosec
    ContributorAuthor

    Maybe there is some invisible character in there?

    Suggestion:
    Improve the error message to tell:

    • At which character position the problem is
    • And which symbol (also shown as char-number)
  6. Finomosec commented on Jul 6, 2023

    @Finomosec
    ContributorAuthor

    Trailing space?

    In deed. There were 2 trailing spaces...

    Thanks!

    But my previous point stands.
    Improved error message would be great.
    Maybe even a special one for "trailing spaces".

  7. Finomosec commented on Jul 6, 2023

    @Finomosec
    ContributorAuthor

    + leading spaces?! (if that's also a problem)

  8. calmh commented on Jul 6, 2023

    @calmh
    Member

    I wonder, because the error for a trailing space is in fact different (name is invalid, must not end in space or period on Windows). Maybe your trailing space was in fact a trailing control character or something. Nonetheless we could improve the error to contain the actual character that is disallowed.

  9. added a commit that references this issue on Jul 6, 2023
    78734d4
  10. changed the title [-]name is invalid, contains Windows reserved character (?, *, etc.)[/-] [+]Error for Windows invalid file names should indicate the invalid character or name part[/+] on Jul 6, 2023
  11. added this to the v1.23.7 milestone on Jul 10, 2023
  12. added 3 commits that reference this issue on Jul 10, 2023
    878304f
    0c7a479
    88fa161
  13. added
    enhancement
    and removed
    bug
    needs-triage
    on Jul 31, 2023
  14. added a commit that references this issue on Jan 28, 2024
    c44de2c
  15. added
    frozen-due-to-age
    on Jul 6, 2024
  16. locked and limited conversation to collaborators on Jul 6, 2024
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

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions