Skip to content

cannot rename file with illegal character, either when adding torrent or after adding torrent #23834

@blindingblacklight

Description

@blindingblacklight

qBittorrent & operating system versions

qb v 5.0.5 (64-bit)
Qt: 6.7.3
Libtorrent: 2.0.11.0
Boost: 1.86.0
OpenSSL: 3.5.0
zlib: 1.2.11

Mac OS Monterey 12.7.6

What is the problem?

When the filename in a torrent has an illegal character such as a colon, when I try to rename the file without the illegal character, I an error message. For example, if the file name is 'picture: sample', I get a dialog box with the error message:

The old path is invalid: 'picture: sample'.

and the only button in the dialog box is "OK".

This happens whether I try to rename the file before or after I add the torrent.

Steps to reproduce

  1. In Preferences > Downloads > When adding a torrent, enable "Display torrent content and some options"
  2. Add torrent containing a file that has a name containing an illegal character.
  3. Control-click (to bring up context menu) on file name with illegal character.
  4. Choose "Rename..."

If you do not try to rename the file when adding the torrent, the torrent is added with the illegal file name.

If you try to rename the file after adding the torrent, the same dialog box with "The old path is invalid" appears, with no option to actually rename.

Additional context

No response

Log(s) & preferences file(s)

qb prefs file seems unnecessary in this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions