Opened 18 years ago
Closed 18 years ago
#3620 closed defect (fixed)
system defaults in new trac.ini override global trac.ini
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | admin/console | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have defined a set of standard settings in a global trac.ini file and after doing a trac-admin initenv for a new project I noticed that the trac.ini settings for the project did contain keys defined in the global file with different values.
Attachments (3)
Change History (10)
by , 18 years ago
Attachment: | trac.ini_global added |
---|
comment:1 by , 18 years ago
Keywords: | needinfo added |
---|---|
Summary: | trac-admin incorrectly creates a project's trac.ini settings based in global trac.ini settings → system defaults in new trac.ini override global trac.ini |
What are you expecting the behavior to be? trac-admin
always initializes trac.ini with the standard Trac default values. I guess you were expecting that the new trac.ini would either copy the values from the global config, or omit them so they didn't override the global config.
comment:2 by , 18 years ago
comment:6 by , 18 years ago
I would suggest to ommit the values which exist in the global.ini.
Currently I have to manually delete the created entries.
by , 18 years ago
Attachment: | comment_out_globally_set_options-r3717.diff added |
---|
Possible fix for the issue: special case the None
value to be an indicator of a globally set configuration option.
comment:7 by , 18 years ago
Keywords: | review added; needinfo removed |
---|---|
Owner: | changed from | to
Status: | new → assigned |
An other possibility: attachment:comment_out_globally_set_options-r3717.diff
With this solution, the entry will be written, but commented out, indicating that the actual value is taken from the global trac.ini file. This solution makes it easy to:
- fill in a different the value to override the globally configured one
- automatically take into account changes in the global trac.ini
comment:8 by , 18 years ago
Any comment on the patch? Otherwise, I'll proceed and commit it later today.
comment:9 by , 18 years ago
Keywords: | review removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Above patch committed in r3744.
the global trac.ini file (I've appended a _global suffix so that the file isn't overridden)