Opened 13 years ago
Closed 13 years ago
#1893 closed bug (Fixed)
Error when adding torrent from Firefox
Reported by: | Koroboru | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.4 |
Component: | GTK UI | Version: | 1.3.3 |
Keywords: | Cc: |
Description
When I'm adding torrent from Firefox using "Open with: Deluge Gtk" I get an error from Deluge like this one: [Errno 2] No such file or directory: u'/home/koroboru/file:/tmp/%5Brutracker.org%5D.t2905444.torrent' This bug appeared after updating deluge to 1.3.2 and firefox to 5.0 so actually I'm not sure this is a deluge's bug.
Attachments (1)
Change History (5)
comment:1 by , 13 years ago
Component: | other → gtkui |
---|---|
Milestone: | Future → 1.3.3 |
Resolution: | → fixed |
Status: | new → closed |
Version: | other (please specify) → 1.3.2 |
by , 13 years ago
Attachment: | 0001-Actually-fix-Firefox-file-prefix-path-error.patch added |
---|
comment:2 by , 13 years ago
Milestone: | 1.3.3 → 1.3.4 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Version: | 1.3.2 → 1.3.3 |
This bug still occurs for some files, because there's more to file URLs than just the file:// prefix. Special characters are expressed in URLs % escape sequences, and this needs to be reversed before treating the URL like a local path. Fortunately, urllib provides a convenient function to do the conversion for us.
comment:3 by , 13 years ago
The problem was actually a change I made to the gtk client and I have suggested a fix in #1918 which also includes url paths conversion. What is really needed though is a test created to make sure it works for all OS's and that we don't break it again in the future without noticing.
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fix committed to 1.3-stable:9c9064b2
This will be fixed in next release: 34f816
Workaround from forum:
The simplest solution is to edit /usr/share/applications/deluge.desktop and remove %U after deluge-gtk
becomes