reference of the session object in PSP gives error.

Bug #82948 reported by Kyle Derr
4
Affects Status Importance Assigned to Milestone
libapache2-mod-python (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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())
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):]
PythonHandler mod_python.psp: TypeError: unsubscriptable object

Kyle Derr (derrley)
description: updated
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are closing this report because you reported this bug a while ago and there is no recent duplicate nor user mentioning having the issue on hardy. Is this is still an issue, don't hesitate to reopen the report. Thanks again!

Changed in libapache2-mod-python:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.