Modify ↓
Opened 12 years ago
Closed 12 years ago
#10792 closed defect (fixed)
TracError after removing an indexed repository
Reported by: | ejucovy | Owned by: | ejucovy |
---|---|---|---|
Priority: | high | Component: | MultiRepoSearchPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: |
Description
To reproduce:
- Add a repo to Trac
- Use the multireposearchplugin's sqlindexer to index the repo's files
- Remove the repo from Trac
- Search for a term that exists in the repo's file contents
The system will throw a AttributeError: 'NoneType' object has no attribute 'get_node'
with this stack trace:
File "/home/trac/web/ve/src/trac/trac/web/main.py", line 497, in _dispatch_request File "/home/trac/web/ve/src/trac/trac/web/main.py", line 214, in dispatch File "/home/trac/web/ve/src/trac/trac/search/web_ui.py", line 106, in process_request File "/home/trac/web/ve/src/trac/trac/search/web_ui.py", line 214, in _do_search File "/home/trac/web/ve/src/multireposearch/multireposearch/search.py", line 89, in get_search_results
Instead, these search results should be discarded.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Fixed in https://github.com/boldprogressives/trac-MultiRepoSearchPlugin/commit/4ba5672c1c97c71811193c74603067c3b2e99b86