Opened 6 years ago

Last modified 22 months ago

#2236 new bug

Disabling plugin with filter in webui generates r.data errors

Reported by: Cas Owned by:
Priority: trivial Milestone: 2.x
Component: Web UI Version: 1.3.5
Keywords: Cc:

Description (last modified by Cas)

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

Change History (4)

comment:1 Changed 6 years ago by Cas

  • Description modified (diff)
  • Summary changed from [Label] Disabling the plugin in webui generate a filter error to [Label] Disabling the plugin in webui generates a filter and console errors

comment:2 Changed 4 years ago by Cas

  • Component changed from Plugin to Web-UI
  • Summary changed from [Label] Disabling the plugin in webui generates a filter and console errors to Disabling plugin with filter in webui generates r.data errors

Fixed the filtermanager error in 1.3-stable: [542e028977b8bc9]

The webui issue is still unresolved, not entirely sure why but r.data is seemingly stuck with 'label' or wrong value in TorrentGrid.js:40 and only workaround is to refresh browser.

comment:3 Changed 4 years ago by Cas

  • Milestone changed from 1.3.x to 2.0.x

comment:4 Changed 22 months ago by Cas

  • Milestone changed from 2.0.x to 2.x

Milestone renamed

Note: See TracTickets for help on using tickets.