Opened 16 years ago
Closed 15 years ago
#5391 closed defect (fixed)
Relative path issues
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | normal | Component: | FineGrainedPageAuthzEditorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
The plugin piggybacks off authz_policy's config file. authz_policy accepts a relative path, but PAPE can't find the file unless you specify an absolute path.
Attachments (0)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Page Authz Permissions Editor.... I believe.... the acronym is all over the source code in any case, so it's something of that sort.
comment:3 Changed 16 years ago by
Owner: | changed from robert_martin to anonymous |
---|---|
Status: | new → assigned |
What path do you expect it to be relative to, and where are you specifying that path?
Need to make sure the correct path is pre-pended.
Should be trivial to modify it so that if no leading /, it will pre-pend the required path.
comment:4 Changed 16 years ago by
the path is relative to the project root. Authz_policy.py uses the same config line to point to the file, and does it relatively, so it should be quite trivial to update.
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Now adds the environments path to the filename if it does not start with a path separator. This has only been tested under Linux and may not work on Windows when the path starts with a drive letter. A crude test has been added, if the second character of the filename is a ':', it will assume it is a full path. Please test on Windows.
What is PAPE?