Opened 18 years ago
Closed 17 years ago
#4925 closed defect (worksforme)
trac.ini file that initenv creates is crashing new projects
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | needinfo |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
New projects that get created have this at the top of their trac.ini file:
[account-manager] authentication_url = None generated_password_length = 8 htdigest_realm = None password_file = None password_format = None password_store = None
Except this is overriding the global account-manager settings in /usr/share/trac/conf.ini
:
[account-manager] password_store = HttpAuthStore authentication_url = https://localhost/login
I need to know how to change the default trac.ini that gets created by the initenv function. I followed the scripts far enough to know that the values are getting pulled from a database. Is there a way to edit that db?
I have temporarily fixed this by editing my trac project creation scripts to delete the account manager section from the new trac.ini files, but it is crude, and I would like something a tad more elegant.
When I do not delete the local account manager section, I get this error:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 335, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch req.authname = self.authenticate(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 145, in authenticate authname = authenticator.authenticate(req) File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 316, in wrap File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 326, in authenticate File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 353, in _remote_user File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 104, in check_password File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 120, in password_store File "/usr/lib/python2.4/site-packages/trac/config.py", line 364, in __get__ raise AttributeError('Cannot find an implementation of the "%s" ' AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "None". Please update the option account-manager.password_store in trac.ini.
Thanks!
Attachments (0)
Change History (7)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 years ago
I agree that I should, and I will. However, I also want to know how to determine how and what gets put into the trac.ini files that initenv creates.
comment:3 by , 18 years ago
It uses the default specified in the Option
(or any of its subclasseses) descriptors used in any loaded plugin.
follow-up: 5 comment:4 by , 18 years ago
Replying to a.kutz@its.utexas.edu:
I agree that I should, and I will. However, I also want to know how to determine how and what gets put into the trac.ini files that initenv creates.
Sure, this is why I did not close the ticket as wontfix, as the question is a more general one.
The default values are usually hardcoded in *Option(...)
lines in Trac source code or plugin source code.
See th:browser:accountmanagerplugin/0.10/acct_mgr/api.py#L83
Do not forget to specify which version of Trac you use when reporting an issue, as the actual implementation may vary depending on the version.
comment:5 by , 18 years ago
Keywords: | needinfo added |
---|
Replying to eblot:
Replying to a.kutz@its.utexas.edu:
I agree that I should, and I will. However, I also want to know how to determine how and what gets put into the trac.ini files that initenv creates.
Sure, this is why I did not close the ticket as wontfix, as the question is a more general one.
So what's the actual improvement we could make on this subject?
follow-up: 7 comment:6 by , 17 years ago
So the default trac.ini is created programmatically based on the core and plugin code in use. Is that correct?
If that is the case then I think this issue is resolved (being an information issue) and can be closed.
comment:7 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Replying to Jeffrey Hulten <jeffh@tragicallyleet.com>:
If that is the case then I think this issue is resolved (being an information issue) and can be closed.
Agreed.
Please report plugin issues to the maintainer of the plugin. See th:wiki:AccountManagerPlugin