Modify

Opened 16 years ago

Closed 15 years ago

#5391 closed defect (fixed)

Relative path issues

Reported by: peterghamilton+trachacks@… 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 robert_martin

What is PAPE?

comment:2 Changed 16 years ago by anonymous

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 robert_martin

Owner: changed from robert_martin to anonymous
Status: newassigned

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 anonymous

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 robert_martin

Resolution: fixed
Status: assignedclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.