Opened 15 years ago

Closed 9 years ago

Last modified 8 years ago

#1109 closed bug (Fixed)

watch dir with special characters

Reported by: MartinEve Owned by:
Priority: major Milestone:
Component: Core Version: 1.3.6
Keywords: watchdir autoadd Cc:

Description

Deluge RC5 seems to halt the watch-dir functionality whenever a torrent with Russian/Hebrew/non-standard-ascii character filenames are added to the watch directory.

For example:

рвшевсго.torrent

stops the watch directory from picking up any subsequently added torrents. After this I have to delete all from the watch dir and restart the client for any changes to take effect.

Attachments (1)

0001-1109-Load-torrents-with-special-characters-in-autoad.patch (1.7 KB ) - added by lefthaha 10 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 by andar, 15 years ago

Status: newpending

I just tried this by renaming a torrent file and copying it into the autoadd directory:

-rw-r--r-- 1 andrew andrew  605 2009-12-28 13:14 рвшевсго.torrent

Worked just fine.

Perhaps there is an issue with the torrent file itself? Could you try reproducing this with debug logging?

comment:2 by MartinEve, 15 years ago

Status: pendingnew

I will try the logging tonight and report back. However, I have also noticed that I get the same effect for filenames containing htmlentities: ie. &

comment:3 by mlapaglia, 15 years ago

Version: 1.2.0_rc51.2.1

If i have a torrent file named Annika Aakj�r - Missionær - 2010 (CD - MP3 - 224).torrent and I try to add it, it fails, but if i rename it to Annika Aakjr - Missionær - 2010 (CD - MP3 - 224).torrent it works correctly. If this file is put into a watch directory, it breaks the deluge watch function, and won't work properly again until the client is restarted.

comment:4 by andar, 15 years ago

Resolution: fixed
Status: newclosed

I've fixed this by ignoring the torrent in this case. It seems that this happens when the filename is not in a proper encoding for the filesystem or locale.

comment:5 by Daniel Liabeuf, 11 years ago

Keywords: watchdir autoadd added
Resolution: Fixed
Status: closedreopened
Summary: RC5 watch dir with special characterswatch dir with special characters
Version: 1.2.11.3.6

I am not satisfied with the patch and I ask that torrents are not just ignored. (should I mark as a feature-request?)

comment:6 by lefthaha, 10 years ago

Resolution: Fixed
Status: reopenedclosed

I found the problem is autoadd.py try to join unicode string (autoadd directory path) with byte string(torrent filename), change autoadd directory path into byte string should fix this bug

comment:7 by Calum, 10 years ago

Resolution: Fixed
Status: closedreopened

comment:8 by Calum, 10 years ago

Component: other/unknownPlugin
Milestone: 1.4.0

comment:9 by Daniel Liabeuf, 10 years ago

@lefthaha: It works! Thanks!

comment:10 by Calum, 10 years ago

Milestone: 1.4.02.0.0

comment:11 by Calum, 9 years ago

Component: PluginCore
Milestone: 2.01.3.x

comment:12 by Calum, 9 years ago

Resolution: Fixed
Status: reopenedclosed

I cannot see any issue in 1.3.12 and the patch supplied by lefthaha does not make sense as os.listdir returns the same type as provided. If you can provide an example torrent and your system setup then I can look into it further.

comment:13 by lefthaha, 9 years ago

Confirm, it works fine in 1.3.12 without my patch

OS: Archlinux test with chinese and japanese characters in filename

No idea what happened in previous version :)

comment:14 by Calum, 8 years ago

Milestone: 1.3.x

Milestone deleted

Note: See TracTickets for help on using tickets.