#2236: [Label] Disabling the plugin in webui generates a filter and console 
errors
---------------------+------------------------------------------------------
 Reporter:  Cas      |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  trivial  |   Milestone:  1.3.x
Component:  plugin   |     Version:  1.3.5
 Keywords:           |  
---------------------+------------------------------------------------------
Description changed by Cas:

Old description:

> The following error will occur after disabling plugin in webui and all
> the torrents will disappear. Refreshing browser is the current
> workaround.
>
> {{{
> [ERROR   ] 11:54:44 client:391 RPCError Message Received!
> --------------------------------------------------------------------------------
> RPCRequest: core.get_torrents_status({u'label': u''}, [u'queue', u'name',
> u'total_size', u'state',
>  u'progress', u'num_seeds', u'total_seeds', u'num_peers', u'total_peers',
> u'download_payload_rate',
>   u'upload_payload_rate', u'eta', u'ratio', u'distributed_copies',
> u'is_auto_managed', u'time_added',
>    u'tracker_host', u'save_path', u'total_done', u'total_uploaded',
> u'max_download_speed', u'max_upload_speed', u'seeds_peers_ratio'], True)
> --------------------------------------------------------------------------------
>   File "/home/ubuntu/deluge.git/deluge/core/rpcserver.py", line 298, in
> dispatch
>     ret = self.factory.methods[method](*args, **kwargs)
>   File "/home/ubuntu/deluge.git/deluge/core/core.py", line 441, in
> get_torrents_status
>     torrent_ids = self.filtermanager.filter_torrent_ids(filter_dict)
>   File "/home/ubuntu/deluge.git/deluge/core/filtermanager.py", line 172,
> in filter_torrent_ids
>     if (not status[field] in values) and torrent_id in torrent_ids:
>
> KeyError: label
> --------------------------------------------------------------------------------
> }}}
>
> This will also appear in browser console when the torrents are unable to
> be displayed:
> {{{
> TypeError: r.data.state is undefined @ http://127.0.0.1:8112/js/deluge-
> all/TorrentGrid.js:40
> }}}

New description:

 The following error will occur after disabling plugin in webui and all the
 torrents will disappear. Refreshing browser is the current workaround.

 {{{
 [ERROR   ] 11:54:44 client:391 RPCError Message Received!
 
--------------------------------------------------------------------------------
 RPCRequest: core.get_torrents_status({u'label': u''}, [u'queue', u'name',
 u'total_size', u'state',
  u'progress', u'num_seeds', u'total_seeds', u'num_peers', u'total_peers',
 u'download_payload_rate',
   u'upload_payload_rate', u'eta', u'ratio', u'distributed_copies',
 u'is_auto_managed', u'time_added',
    u'tracker_host', u'save_path', u'total_done', u'total_uploaded',
 u'max_download_speed', u'max_upload_speed', u'seeds_peers_ratio'], True)
 
--------------------------------------------------------------------------------
   File "/home/ubuntu/deluge.git/deluge/core/rpcserver.py", line 298, in
 dispatch
     ret = self.factory.methods[method](*args, **kwargs)
   File "/home/ubuntu/deluge.git/deluge/core/core.py", line 441, in
 get_torrents_status
     torrent_ids = self.filtermanager.filter_torrent_ids(filter_dict)
   File "/home/ubuntu/deluge.git/deluge/core/filtermanager.py", line 172,
 in filter_torrent_ids
     if (not status[field] in values) and torrent_id in torrent_ids:

 KeyError: label
 
--------------------------------------------------------------------------------
 }}}

 These errors will also appear at various points in browser console when
 the torrents are unable to be displayed:
 {{{
 torrents is null: @ Torrentgrid.js Line 396
 record is undefined @ TorrentGrid.js:378
 r.data.state is undefined @ TorrentGrid.js:40
 }}}

--

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/2236#comment:1>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to