Comment 0 for bug 82948

Revision history for this message
Kyle Derr (derrley) wrote :

Binary package hint: libapache2-mod-python

When I reference the session object in a PSP script, I get 500 Internal Server error. The apache2 error log gives me back this error (with the timestamps, etc., omitted) when I access the page with the source "<%= session %>:

Traceback (most recent call last):
PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req)
PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 297, in handler\n p.run()
PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 191, in run\n session = Session.Session(req)
PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/Session.py", line 389, in Session\n timeout=timeout, lock=lock)
PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/Session.py", line 294, in __init__\n timeout=timeout, lock=lock)
 PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/Session.py", line 132, in __init__\n Cookie.add_cookie(self._req, self.make_cookie())
[Fri Feb 02 16:22:05 2007] [error] [client 128.42.196.22] PythonHandler mod_python.psp: File "/usr/lib/python2.4/site-packages/mod_python/Session.py", line 160, in make_cookie\n c.path = dirpath[len(docroot):]
[Fri Feb 02 16:22:05 2007] [error] [client 128.42.196.22] PythonHandler mod_python.psp: TypeError: unsubscriptable object