Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#12468 closed enhancement (fixed)

Raise TracError if configuration file missing

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.11
Component: general Version:
Severity: normal Keywords: environment
Cc: Branch:
Release Notes:

TracError is raised when the configuration file is not found.

API Changes:

The exists property of the Configuration class indicates whether the file exists.

Internal Changes:

Description

If the configuration file is missing, trac.ticket.default_workflow.ConfigurableTicketWorkflow will return True from its implementation of EnvironmentSetupParticipant.needs_upgrade. The following error is seen:

Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin /Users/rjollos/Documents/Workspace/trac-dev/tracenvs/proj-1.1 upgrade"

Instead, we could check for configuration file existence and raise an error.

Attachments (0)

Change History (2)

comment:2 by Ryan J Ollos, 9 years ago

API Changes: modified (diff)
Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in [14735], merged to trunk in [14736].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.