Opened 15 years ago
Closed 15 years ago
#1112 closed bug (Fixed)
[PATCH] When file name is changed in Add Torrents dialog, file's path info is lost.
Reported by: | ankouslash | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | GTK UI | Version: | 1.3.0_dev |
Keywords: | Cc: |
Description
When rename file under directory in Add Torrent dialog, file is stored outside of the directory.
Steps to reproduce:
1) Open a torrent file includes directory and file (i.e. /dir_A/file_B).
2) Rename file in Add Torrent dialog (e.g. file_B to file_C).
Actual result:
Renamed file_C is stored outside of dir_A.
Platform: Arch Linux
Versions:
deluge trunk r6066
Python 2.6.4
Attachments (2)
Change History (6)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Component: | core → gtkui |
---|---|
Summary: | When file name is changed in Add Torrents dialog, file's path info is lost. → [PATCH] When file name is changed in Add Torrents dialog, file's path info is lost. |
Version: | 1.2.0_dev → 1.3.0_dev |
Okay, here is the patch below for this issue at least for what i see wrong here i wrote in the previous comment.
by , 15 years ago
Attachment: | add-torrent-dialog-fix-renames.patch added |
---|
by , 15 years ago
Attachment: | testtor.torrent added |
---|
Torrent file to test this issue (try to rename dirlevel1 without a patch above)
comment:3 by , 15 years ago
Milestone: | → 1.3.0 |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed in master and will be in 1.3.0.
Some more notes about this issue. For me things start to go wrong here when torrent has 3 level nested directory structure. So for example to reproduce torrent should be like this:
top_level_dir/level1_dir/level2_dir/
Then you just can rename any directory in Add Torrents dialog and see the result in the Files tab. Here i see for example if i rename top_level_dir to top_level_dir11 - in the Files tab both and top_level_dir and top_level_dir11 shown at top level for some reason, also level2_dir is missing at all.