[Twisted-web] new http auth stuff

David Reid dreid at dreid.org
Fri Feb 27 22:33:48 EST 2009


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 at imperial.ac.uk>wrote:

> 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=3D=3D'foo':
>      return Foo()
>    elif path=3D=3D'bar':
>      return Bar()
>
> ...then hitting the url:
>
> http://localhost:8080/foo
>
> ...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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20090227/7f=
82ee33/attachment.htm


More information about the Twisted-web mailing list