Opened 18 years ago
Closed 18 years ago
#903 closed defect (fixed)
Relative Path for the htpasswd file does not work on linux
Reported by: | lazaridis_com | Owned by: | Matt Good |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I've installed the account manager plugin and it works fine.
http://dev.lazaridis.com/base/changeset/111
One problem occours:
In the local installation (windows) the relative path within the *.ini works fine.
In the production server, the relative path does not work (giving an absolute path works nice).
Attachments (0)
Change History (11)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
Trac Release: | 0.9 → 0.10 |
---|
on the 0.11dev version (missing this from the "Trac Release" drop down in this trac installtion)
comment:3 Changed 18 years ago by
Trac Release: | 0.10 → 0.11 |
---|
comment:4 follow-up: 5 Changed 18 years ago by
If i understand right, then at this location:
source:accountmanagerplugin/trunk/acct_mgr/htfile.py#rev=1518#L51
a test should happen if the given 'filename' is existent.
If not, the filename should be constructed based on the current environment.
comment:5 follow-up: 6 Changed 18 years ago by
Priority: | high → normal |
---|---|
Status: | new → assigned |
Replying to lazaridis_com:
If i understand right, then at this location:
source:accountmanagerplugin/trunk/acct_mgr/htfile.py#rev=1518#L51
a test should happen if the given 'filename' is existent.
If not, the filename should be constructed based on the current environment.
No, the Option
class is just used to define that as a setting for trac.ini.
Using a relative path at this time will be relative to the current working directory of the web server. I'll look into making this work relative to the Trac environment instead.
comment:6 follow-up: 7 Changed 18 years ago by
Replying to mgood:
this code should do the work, possibly you can verify, I get some errors which seem to result out of the way you've implemented the inheritance:
def __init__(self): if not os.path.isabs(self.filename_option): combined_name = os.path.join(self.env.path, self.filename_option) self.filename = os.path.normpath(combined_name) self.log.debug('account manager password-file: %s', self.filename)
comment:7 Changed 18 years ago by
Replying to anonymous:
that was me, shouldn't this site do something like "auto-login" (e.g. from authentication cache? )
comment:8 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:9 follow-up: 10 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
the patch works technically, but there's a small cosmetic issue:
"_filename" appears on the Admin page instead of "filename".
comment:11 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
configuration: