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:


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/", line 497, in _dispatch_request
File "/home/trac/web/ve/src/trac/trac/web/", line 214, in dispatch
File "/home/trac/web/ve/src/trac/trac/search/", line 106, in process_request
File "/home/trac/web/ve/src/trac/trac/search/", line 214, in _do_search
File "/home/trac/web/ve/src/multireposearch/multireposearch/", line 89, in get_search_results

Instead, these search results should be discarded.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by ejucovy

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

Add Comment

Modify Ticket

as closed The owner will remain ejucovy.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.