Google Groups Home
Help | Sign in
#779: Conflict with sessions and basic/digest auth tools
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
CherryPy  
View profile
 More options Jan 28, 8:35 am
From: CherryPy <t...@cherrypy.org>
Date: Mon, 28 Jan 2008 13:35:19 -0000
Local: Mon, Jan 28 2008 8:35 am
Subject: [CherryPy] #779: Conflict with sessions and basic/digest auth tools

#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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile
 More options Feb 21, 1:43 pm
From: CherryPy <t...@cherrypy.org>
Date: Thu, 21 Feb 2008 18:43:45 -0000
Local: Thurs, Feb 21 2008 1:43 pm
Subject: Re: [CherryPy] #779: Conflict with sessions and basic/digest auth tools

#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  |   Resolution:        
 Keywords:                 |  
---------------------------+----------------------------------------------- -
Comment (by guest):

 Problem is with auth raising 401, because then before_request_body hooks
 are not run and thus session is not initialized.

 Fix for me with existing version is hacky:
 {{{
 cherrypy.tools.later_digest_auth = cherrypy.Tool('before_handler',
 digest_auth, priority=60)
 }}}

 Real fix would mean either not calling session hooks if hooks wasn't
 initialized, or checking for hasattr(cherrypy, 'session') in save/etc
 session hooks.

 Or something more robust and less straightforward :)

--
Ticket URL: <http://www.cherrypy.org/ticket/779>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile
 More options Mar 14, 11:35 am
From: CherryPy <t...@cherrypy.org>
Date: Fri, 14 Mar 2008 15:35:34 -0000
Local: Fri, Mar 14 2008 11:35 am
Subject: Re: [CherryPy] #779: Conflict with sessions and basic/digest auth tools

#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  |   Resolution:        
 Keywords:                 |  
---------------------------+----------------------------------------------- -
Comment (by fumanchu):

 I can't seem to reproduce this either in HEAD or r1900. Can you verify
 it's been fixed or is invalid?

--
Ticket URL: <http://www.cherrypy.org/ticket/779>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile
 More options Apr 26, 9:00 pm
From: CherryPy <t...@cherrypy.org>
Date: Sun, 27 Apr 2008 01:00:00 -0000
Subject: Re: [CherryPy] #779: Conflict with sessions and basic/digest auth tools

#779: Conflict with sessions and basic/digest auth tools
----------------------+---------------------------------------------------- -
 Reporter:  dowski    |        Owner:  dowski
     Type:  defect    |       Status:  new  
 Priority:  normal    |    Milestone:  3.1  
Component:  sessions  |   Resolution:        
 Keywords:            |  
----------------------+---------------------------------------------------- -
Comment (by mschurter):

 Attached test case works for me in r1954.  (Debian Sid, Python 2.5.2)

--
Ticket URL: <http://www.cherrypy.org/ticket/779>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CherryPy  
View profile
 More options Jun 29, 3:33 pm
From: CherryPy <t...@cherrypy.org>
Date: Sun, 29 Jun 2008 19:33:41 -0000
Local: Sun, Jun 29 2008 3:33 pm
Subject: Re: [CherryPy] #779: Conflict with sessions and basic/digest auth tools

#779: Conflict with sessions and basic/digest auth tools
----------------------+---------------------------------------------------- -
 Reporter:  dowski    |        Owner:  dowski    
     Type:  defect    |       Status:  closed    
 Priority:  normal    |    Milestone:  3.1      
Component:  sessions  |   Resolution:  worksforme
 Keywords:            |  
----------------------+---------------------------------------------------- -
Changes (by fumanchu):

  * resolution:  => worksforme
  * status:  new => closed

--
Ticket URL: <http://www.cherrypy.org/ticket/779>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google