Modify

#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:

  1. Add a repo to Trac
  2. Use the multireposearchplugin's sqlindexer to index the repo's files
  3. Remove the repo from Trac
  4. 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)

Change History (1)

comment:1 Changed 19 months ago by ejucovy

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ejucovy. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.