NoSuchResource when accessing a protected leaf resource
[email protected] Sat, 12 Sep 2009 20:00:51 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from unshift <[email protected]>: 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. ---------- Type : defect Component: web Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/4018