Opened 16 years ago
Closed 7 months ago
#5302 closed defect (fixed)
SvnAuthzAdmin path calculations incorrect on Windows
Reported by: | Chris Heller | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | SvnAuthzAdminPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
SvnAuthzAdminPlugin uses Python's url2pathname() function to go from the current URL to the relative path in the svn authz file format.
The svn authz format is always with URL or Unix style paths ('/' instead of '\'), so when using this plugin on Windows, the path calculations are incorrect.
Attachments (1)
Change History (7)
comment:1 Changed 16 years ago by
comment:2 follow-up: 3 Changed 15 years ago by
Owner: | changed from Kis Gergely to rupert thurner |
---|---|
Status: | new → assigned |
would you mind creating a patch please?
Changed 13 years ago by
Attachment: | fix_svnauth_paths.patch added |
---|
Patch to replace url2pathname and pathname2url by quote and unquote
comment:3 Changed 13 years ago by
Replying to ThurnerRupert:
would you mind creating a patch please?
I've created a different patch
replacing the use of url2pathname
and pathname2url
by quote
and
unquote
, as that is what is needed to process the svnauth
paths
(in UNIX systems the functions url2pathname
and pathname2url
are
equivalent to quote
and unquote
and the svnauth
file uses UNIX
like paths, so we don't need to use the system dependent functions).
comment:4 Changed 11 years ago by
Owner: | changed from rupert thurner to Ryan J Ollos |
---|
comment:5 Changed 5 years ago by
Status: | assigned → new |
---|
What I did to get around this issue is to add the following at the top of the admin_ui.py file.
and then change all other references to url2pathname to use the newly defined url2localpathname