Edgewall Software

Opened 8 years ago

Closed 8 years ago

#12468 closed enhancement (fixed)

Raise TracError if configuration file missing — at Version 2

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.

Change History (2)

comment:2 by Ryan J Ollos, 8 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].

Note: See TracTickets for help on using tickets.