Python Desktop Server Weblog 29.6.2003

a picture of myself

Münsterland.org

2003-06-29

Bug in medusa creates some small problems in PyDS

There is a bug in medusa with regard to the request unescaping. Medusa does the unescaping (turning elements with %XX format into the corresponding char) on the whole request, not only on the script path. This poses problems if your parameters use escaping to transport chars with special meaning - the escaping get's unescaped and so the parsing of URLs looses elements or shortens them. For example you can't pass an URL with a fragment part as a parameter, as the unescaping will make everything behind the # char as the fragment of the full URL instead as part of the query parameter.

I reported it twice to the medusa-dev mailing list, but no reaction so far. Same with somebody else who stumbled over the same problem. I think I will put in my own http_server.py into PyDS to circumvent this error, as the maintainer of medusa doesn't seem to be interested in fixing this annoying error. Unsmiley

Update: download the following file and put it into the PYTHONLIB/medusa/ path, overwriting your http_server.py copy. This should fix the problem.

http_server.py: 25.00 KByte, last change: Sun, 29 Jun 2003 21:32:14 GMT, type: text/x-python

click here to download file

posted at 23:15:44    #
June 2003
MoTuWeThFrSaSu
       1
2 3 4 5 6 7 8
9101112131415
16171819202122
23242526272829
30      
May
2003
 Jul
2003

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2003-2007, Georg Bauer