#779: Conflict with sessions and basic/digest auth tools
---------------------------+----------------------------------------------- -
Reporter: dowski | Owner: dowski
Type: defect | Status: new
Priority: normal | Milestone: 3.1
Component: CherryPy code | Keywords:
---------------------------+----------------------------------------------- -
It looks like there is a problem with using the session and
(basic|digest)_auth tools together. This was originally reported on IRC
by !StoneKeeper. Attached is a sample program that demonstrates the
problem. Here is the traceback:
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/_cpengine.py", line 244, in
release
req.close()
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/_cprequest.py", line 424, in
close
self.hooks.run('on_end_request')
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/_cprequest.py", line 90, in run
hook()
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/_cprequest.py", line 58, in
__call__
return self.callback(**self.kwargs)
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/lib/sessions.py", line 418, in
close
if sess.locked:
File "/usr/lib/python2.4/site-
packages/CherryPy-3.0.2-py2.4.egg/cherrypy/__init__.py", line 234, in
__getattr__
child = getattr(serving, self.__attrname__)
AttributeError: '_Serving' object has no attribute 'session'
}}}
--
Ticket URL: <http://cherrypy.org/ticket/779>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework