Modify

Opened 4 years ago

Closed 4 years ago

#10793 closed defect (fixed)

TracError if a repo is badly configured

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 the filesystem, but leave it configured in Trac
  4. Search for a term that exists in the repo's file contents

The system will throw a different error depending on the version control backend used. For Git, it will look like /path/to/repository.git/ does not appear to be a Git repository.

Instead of throwing a system error, this exception should be caught and logged, and the offending search result should be ignored.

Attachments (0)

Change History (1)

Modify Ticket

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.