Opened 12 years ago

Closed 12 years ago

#2227 closed bug (Fixed)

can't add a specific torrent file

Reported by: kfirufk Owned by:
Priority: minor Milestone: 1.3.6
Component: Core Version: 1.3.5
Keywords: Cc:

Description

Hello. using the deluge web ui, when I press on + and then on 'file' to add a torrent file. a specific one just shows the name of the torrent without showing the actual content and I can't press 'add' to add this file.

when I run deluge on debug, the log file shows:

'utf8' codec can't decode bye 0xc7 in position 1: invalid continuation byte.

full output at: http://pastebin.com/kwPeX5jr

Attachments (1)

[audionews.org].f85d935.torrent (98.6 KB ) - added by kfirufk 12 years ago.
the torrent that causes this error

Download all attachments as: .zip

Change History (4)

by kfirufk, 12 years ago

the torrent that causes this error

comment:1 by Calum, 12 years ago

Component: othercore
Milestone: Future1.3.6
Version: other (please specify)1.3.5

The torrent contains 'sha1' and 'ed2k' digest entries which cause the decode issue.

comment:2 by Calum, 12 years ago

  • deluge/ui/common.py

    diff --git a/deluge/ui/common.py b/deluge/ui/common.py
    index 08504be..59ae5fa 100644
    a b def __init__(self, filename, filetree=1):  
    104104                else:
    105105                    path = decode_string(os.path.join(prefix, decode_string(os.path.join(*f["path"]), self.encoding)), self.encoding)
    106106                f["index"] = index
     107                if "sha1" in f and len(f["sha1"]) == 20:
     108                        f["sha1"] = f["sha1"].encode('hex')
     109                if "ed2k" in f and len(f["ed2k"]) == 16:
     110                        f["ed2k"] = f["ed2k"].encode('hex')
    107111                paths[path] = f
    108 
    109112                dirname = os.path.dirname(path)
    110113                while dirname:
    111114                    dirinfo = dirs.setdefault(dirname, {})

comment:3 by Calum, 12 years ago

Resolution: fixed
Status: newclosed

Fixed 1.3-stable: 74208c27f

Note: See TracTickets for help on using tickets.