Skip to content

Renaming allows forbidden Windows characters in filenames #128

@jamienj

Description

@jamienj

Summary
When NsxLibraryManager is installed or run in a Linux environment, the renaming functions permit characters that are forbidden in Windows filenames (such as <, >, :, ", /, , |, ?, *). This allows creation of invalid file names that Windows can no longer properly view.

Environment

  • NsxLibraryManager version: v0.5.3
  • OS: Unraid 7.1.4
  • Install method: Docker Container - ghcr.io/ivaano/nsxlibrarymanager:latest

Steps to reproduce

  1. Open NsxLibraryManager on browser.
  2. Use a rename function on a folder or collection.
  3. Select a folder or collection containing forbidden Windows characters (example: Gal*Gun 2 or Who Wants To Be A Millionaire?).
  4. Confirm the rename.

Observed behavior

  • Program accepts the input and renames/creates a file with forbidden character(s), which causes errors on Windows file systems operations or prevents access by Windows Explorer and other tools.

Expected behavior

  • Renaming should validate filenames and reject Windows-forbidden characters (< > : " / \ | ? *).

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