Modify

Opened 4 years ago

Closed 4 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:

  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)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ejucovy.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.