Modify ↓
#13439 closed defect (fixed)
AttributeError: 'int' object has no attribute 'resource'
Reported by: | Peter Suter | Owned by: | Peter Suter |
---|---|---|---|
Priority: | normal | Component: | WikiAutoCompletePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Reported by Nicolas Martin (ntmlod):
Spam filter plugin ... crash: 'Monitoring' (/admin/spamfilter/monitor) and 'Reports' (/admin/spamfilter/report). But the log refers to WikiAutoCompletePlugin
2018-06-10 20:57:39,539 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 224, in dispatch self._post_process_request(req, *resp) File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 338, in _post_process_request resp = f.post_process_request(req, *resp) File "build/bdist.linux-x86_64/egg/wikiautocomplete/web_ui.py", line 60, in post_process_request if context_or_page and context_or_page.resource: AttributeError: 'int' object has no attribute 'resource'
source:wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py@17075:59-62#L43 is not working with data['page']
of type int
in e.g. trac:source:plugins/1.0/spam-filter/tracspamfilter/admin.py@16487:97,211,239,243#L211
Attachments (0)
Change History (5)
comment:1 Changed 6 years ago by
Note: See
TracTickets for help on using
tickets.
Maybe we should do something like this?