WEBUI: Can't rename sub-folder/file if parent folder rename didn't complete when dialog window opened #17393

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

Originally created by @Asinin3 on GitHub (Dec 24, 2025).

qBittorrent & operating system versions

qBit 5.1.4
TrueNAS CE 25.10
Docker 27.5.0

What is the problem?

Can't rename sub-files or sub-folders if parent folder rename was in progress when dialog window was opened even if it completed the parent folder rename before you hit the rename button.

Steps to reproduce

In qBit's WEBUI:

  1. Go to any torrent with a folder structure and rename the folder
  2. Open the rename window for any sub-folders or sub-files immediately (before the parent folder rename completes)
  3. Try to rename the file/folder, it will give an error: "Failed to update name"

This error will occur even if you wait for the parent folder rename to complete, or click OK on the javascript error and try to rename it again as the window remains open.

Additional context

It seems that qBit is saving the path when the rename window is opened instead of when you actually click the rename button, and when it errors it doesn't check the path again to see if it changed so you have to close the rename window then open it again and type the name in again, which is a bit of a pain.

Obvious work-around is to rename sub-files/folders before parent folders, or wait for renaming to complete but for me that can take 6-10 seconds.

Log(s) & preferences file(s)

I checked logs and qbit doesnt seem to log file/folder renames, only torrent relocations, there was nothing in the logs for the rename at all, not even succesful renames of content files. Just the javascript error I showed.

Originally created by @Asinin3 on GitHub (Dec 24, 2025). ### qBittorrent & operating system versions qBit 5.1.4 TrueNAS CE 25.10 Docker 27.5.0 ### What is the problem? Can't rename sub-files or sub-folders if parent folder rename was in progress when dialog window was opened even if it completed the parent folder rename before you hit the rename button. ### Steps to reproduce In qBit's WEBUI: 1. Go to any torrent with a folder structure and rename the folder 2. Open the rename window for any sub-folders or sub-files immediately (before the parent folder rename completes) 3. Try to rename the file/folder, it will give an error: "Failed to update name" This error will occur even if you wait for the parent folder rename to complete, or click OK on the javascript error and try to rename it again as the window remains open. ### Additional context It seems that qBit is saving the path when the rename window is opened instead of when you actually click the rename button, and when it errors it doesn't check the path again to see if it changed so you have to close the rename window then open it again and type the name in again, which is a bit of a pain. Obvious work-around is to rename sub-files/folders before parent folders, or wait for renaming to complete but for me that can take 6-10 seconds. ### Log(s) & preferences file(s) I checked logs and qbit doesnt seem to log file/folder renames, only torrent relocations, there was nothing in the logs for the rename at all, not even succesful renames of content files. Just the javascript error I showed.
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#17393
No description provided.