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

Open
opened 2026-02-22 03:52:18 -05:00 by deekerman · 0 comments
Owner

Originally created by @blindingblacklight on GitHub (Feb 13, 2026).

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

Originally created by @blindingblacklight on GitHub (Feb 13, 2026). ### 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#17505
No description provided.