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)

add-torrent-dialog-fix-renames.patch (1.2 KB ) - added by Ideal 15 years ago.
testtor.torrent (263 bytes ) - added by Ideal 15 years ago.
Torrent file to test this issue (try to rename dirlevel1 without a patch above)

Download all attachments as: .zip

Change History (6)

comment:1 by Ideal, 15 years ago

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.

comment:2 by Ideal, 15 years ago

Component: coregtkui
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_dev1.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 Ideal, 15 years ago

Attachment: testtor.torrent added

Torrent file to test this issue (try to rename dirlevel1 without a patch above)

comment:3 by John Garland, 15 years ago

Milestone: 1.3.0

comment:4 by John Garland, 15 years ago

Resolution: fixed
Status: newclosed

This has been fixed in master and will be in 1.3.0.

Note: See TracTickets for help on using tickets.