Opened 14 years ago

Closed 14 years ago

#132 closed bug (Fixed)

Adding a torrent-URL from web ui fails

Reported by: deluge-trac@… Owned by: mvoncken
Priority: minor Milestone:
Component: Web UI Version: 0.6.0svn
Keywords: Cc:

Description

Hi,

I use the nightly svn snapshots on ubuntu gutsy. I just wanted to record here that adding a torrent-URL via the web interface does not work. Adding the same torrent by first wget'ing it and then adding the torrent-file works fine.

--Deluge Error--
Fault : <Fault 1: "<type 'exceptions.TypeError'>:export_add_torrent_url() takes exactly 4 arguments (3 given)">
path : /torrent/add
file : /var/lib/python-support/python2.5/deluge/xmlrpclib.py in close, line 786

--Input--
<Storage {'max_download_speed_per_torrent': 'Unlimited', 'prioritize_first_last_pieces': 'on', 'max_upload_speed_per_torrent': '20', 'url': 'http://ubuntu.intergenia.de/releases/hardy/ubuntu-8.04-beta-alternate-i386.iso.torrent', 'download_location': '/export/p2p', 'redir': '', 'compact_allocation': 'on', 'max_connections_per_torrent': 'Unlimited', 'submit': 'Submit', 'max_upload_slots_per_torrent': 'Unlimited', 'torrent': ''}>

--Versions--
WebUi : rev.185
Python : 2.5.1 (r251:54863, Mar  7 2008, 04:10:12) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
dbus:0.82.0

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "/var/lib/python-support/python2.5/deluge/ui/webui/page_decorators.py", line 52, in deco
    return func(self, name) #check_session:ok
  File "/var/lib/python-support/python2.5/deluge/ui/webui/torrent_add.py", line 121, in POST
    proxy.add_torrent_url(vars.url,options)
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1204, in request
    return self._parse_response(h.getfile(), sock)
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "/var/lib/python-support/python2.5/deluge/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])

Thanks for all your hard work.

Regards

Rolf

Change History (2)

comment:1 Changed 14 years ago by mvoncken

  • Version changed from svn to 0.6.0svn

comment:2 Changed 14 years ago by mvoncken

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r.3068.

Note: See TracTickets for help on using tickets.