Modify ↓
#2526 closed defect (fixed)
Paths evaluated too broadly
| Reported by: | miksik@… | Owned by: | Chriki |
|---|---|---|---|
| Priority: | normal | Component: | RestrictedAreaPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.10 |
Description
When adding a path to the restricted paths, it is evaluated too broadly, e.g. adding /wiki/ProjectA will restrict access also to /wiki/ProjectAOverview and so on. Is there any means to make the plugin strict on evaluating paths, if needed?
Attachments (0)
Change History (2)
comment:1 Changed 5 years ago by Chriki
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 5 years ago by Daniel Miksik <miksik@…>
Thanks! It works as expected. ;) I wonder though, if there is a simple way of having both the strict and the broad mode built in, and using one of them as needed. Example:
- I want to restrict access to all pages beginning with /wiki/ProjectA.
The path in trac.ini would, read like this: paths=/wiki/ProjectA,/wiki/Whatever.
If specified this way, the access to /wiki/ProjectBOverview would also be restricted. - I want to restrict access to some pages beginning with /wiki/ProjectB.
The path in trac.ini would read like this: paths=/wiki/ProjectB/,/wiki/ProjectBInfo/,/wiki/Whatever. If specified this way, the access to /wiki/ProjectBOverview or /wiki/ProjectBInfoUsers would remain unrestricted.
The notation for trac.ini is just an example.
Do you think this is feasible?
Note: See
TracTickets for help on using
tickets.


Thanks for your bug report! I have fixed the problem with changeset:3184. I'd be glad to hear whether everything works for you now :-)