Opened 6 years ago

Closed 5 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


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 6 years ago by robert_martin

What is PAPE?

comment:2 Changed 6 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 6 years ago by robert_martin

  • Owner changed from robert_martin to anonymous
  • Status changed from new to 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 6 years ago by anonymous

the path is relative to the project root. 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 5 years ago by robert_martin

  • Resolution set to fixed
  • Status changed from assigned to 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.

Add Comment

Modify Ticket

as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.