durusmail: quixote-users: SCGI + Quixote, Location / ?
SCGI + Quixote, Location / ?
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-12
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
RELEASED: scgi-1.6
2005-08-11
2005-08-11
SCGI + Quixote, Location / ?
David Binger
2005-08-11
On Aug 10, 2005, at 11:23 PM, Neil Schemenauer wrote:

> For your specific problem, if you have:
>
>     SCGIMount /rl localhost:3000
>
> then the URI /rl/ will result in SCRIPT_NAME="/rl" and PATH_INFO="/".
> If the URI is /rl then SCRIPT_NAME="/rl" and PATH_INFO="".  That
> will trigger the following assertion in Quixote:
>
> Traceback (most recent call last):
>   File "/home/nas/lib/python/quixote/publish.py", line 273, in
> process_request
>     output = self.try_publish(request)
>   File "/home/nas/lib/python/quixote/publish.py", line 248, in
> try_publish
>     assert path[:1] == '/'
> AssertionError
>
> I think we could change Quixote to do a redirect (just like in other
> cases when a trailing slash is missing) instead of raising an error.

Thanks for the explanation.   Now I see where that redirect would be
valuable.




reply