Ticket #4018 defect closed invalid
NoSuchResource when accessing a protected leaf resource
| Reported by: | unshift | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web | Keywords: | |
| Cc: | Branch: | ||
| Author: | Launchpad Bug: |
Description
When protecting a Site object which consists of a root Resource and multiple leaf resources, accessing a leaf node will result in a NoSuchResource exception.
For example, if I guard my root object, and then add to it /foo/die, then accessing /foo/die will try to render /. Setting a breakpoint on getChildWithDefault shows that self.children has "foo" in it (meaning / is being rendered) -- there's no traversal mechanism there.
This might be the way it's supposed to work (and the unit tests only really test this case, as far as I can tell from a quick look), but the documentation notes that the auth mechanism is supposed to be a drop-in solution, so either the code or doc is mistaken.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

