Gregory (Grisha) Trubetskoy
grisha at verio.net
Tue Apr 10 22:22:00 EST 2001
Joost - This was a bug with reusing a pointer to the internal representation of a Python string after resizing it. For some reason on Linux and FreeBSD it caused no problems, but showed on Solaris. This should be fixed in the latest code available via CVS. Grisha On Thu, 15 Feb 2001, Joost Yervante Damad wrote: > Hello, > > A friend of me discovered wierd bug in publisher : > > def tst(req, arg='none', test='none', longname='none'): > req._content_type_set = 0 > return "Arguments are '%s', '%s' and '%s'" % (arg, test, longname) > > if we now do: > > https://r2d2.iplab.atea.be:8081/py/test.py/tst?arg=x&test=y&longname=z > > the result is: > > Arguments are '', '' and 'z' > > Aparently short names are not getting into the functions. > Long names are. Or is this caused by name clashes? > > We tested this both with 2.7.1 and 2.7.2 on Solaris 2.6 > with apache 1.3.14 with SSL and mod_python statically linked. > > Another error I found: > > The handling of _content_type_set seems to be broken. > > publisher no longer functioned, bailin out at: > > if not req._content_type_set: > > giving an exeception stating that that variable was not found. > > Removing that part and setting the content_type to > "text/html" is our current workaround. > > Any thoughts? > > Joost > > P.S.: but we love mod_python :) > > -- > Joost Damad - Siemens ICN D NC A - +3214252297 > -- > Five is a sufficiently close approximation to infinity. > -- Robert Firth > "One, two, five." > -- Monty Python and the Holy Grail > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://www.modpython.org/mailman/listinfo/mod_python >
|