
All,
The new HTTPAuthSessionWrapper stuff in Twisted 8.2 seems to have a bug. Specifically, the 1st component of the URL is thrown away by the HTTPAuthSessionWrapper getChildWithDefault method.
So, if I define a resource:
class Page(resource.Resource): def getChild(self, path, request): if path=='foo': return Foo() elif path=='bar': return Bar()
...then hitting the url:
...just gives me the Page() resource, but if I hit:
http://localhost:8080/ANYSTRING/foo
...I get a Foo()
Am I seeing a bug, or am I using it wrong?

Sounds like a bug, maybe file one with trac, http://twistedmatrix.com/trac/
-David
On Fri, Feb 27, 2009 at 5:40 AM, Phil Mayers p.mayers@imperial.ac.ukwrote:
All,
The new HTTPAuthSessionWrapper stuff in Twisted 8.2 seems to have a bug. Specifically, the 1st component of the URL is thrown away by the HTTPAuthSessionWrapper getChildWithDefault method.
So, if I define a resource:
class Page(resource.Resource): def getChild(self, path, request): if path=='foo': return Foo() elif path=='bar': return Bar()
...then hitting the url:
...just gives me the Page() resource, but if I hit:
http://localhost:8080/ANYSTRING/foo
...I get a Foo()
Am I seeing a bug, or am I using it wrong?
Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

participants (2)
-
David Reid
-
Phil Mayers