durusmail: quixote-users: Bug in form2.form? NOPE!
Bug in form2.form?
2004-10-03
Bug in form2.form? NOPE!
2004-10-04
[PATCH] to medusa_http.py (Was Bug in form2.form? NOPE!)
2004-10-04
2004-10-04
2004-10-04
2004-10-04
Bug in form2.form? NOPE!
Jason Sibre
2004-10-04
Quoting Neil Schemenauer :
> On Sun, Oct 03, 2004 at 03:34:05PM -0500, Jason Sibre wrote:
> > I'm pretty sure that no matter which web server you're using,
> > request.get_path() is going to return the requested url verbatim
> > (i.e. not unquoted)
>
> No, it is supposed to be unquoted.  Doing it the other way would be
> more trouble.  For example, a client may send '/foo' as the path or
> it may send '%2f%66%6f%6f'.  The server needs to treat them the same
> and so it is best to have the path in a canonical form.  Unquoted is
> most logical.
>
> IOW, I'm pretty sure this is a Medusa bug or a bug in the Medusa
> parts of Quixote.
>
>   Neil

Ugg.... Yep.  I woke up this morning with a nagging feeling, and your email
jogged my memory.  We had this conversation back in February ("request.get_url
issue" was the subject) except at that time we were discussing the REQUEST_URI
value.

I just tried my app with twisted (it's a very simple swap for me to jump between
twisted and medusa) and it works fine without the patch I sent yesterday, so it
must be unquoting.  I'll look into the other places that could be changed to
fix this in medusa or the Qx handler for medusa.

Jason


reply