[Trac-tickets] Re: [The Trac Project] #3154: Problem with storing authenticated sessions in DB

The Trac Project noreply at edgewall.com
Mon May 15 15:07:40 CDT 2006


#3154: Problem with storing authenticated sessions in DB
------------------------------------+---------------------------------------
 Reporter:  kbogdanov at redsolex.com  |        Owner:  jonas
     Type:  defect                  |       Status:  new  
 Priority:  normal                  |    Milestone:       
Component:  general                 |      Version:  devel
 Severity:  major                   |   Resolution:       
 Keywords:                          |  
------------------------------------+---------------------------------------
Comment (by cboos):

 The current code looks correct to me: inside `promote_session`, in either
 case of the '''if''', you end up with `(sid,authenticated) ==
 (self.req.authname,1)`
 so doing an INSERT of these values in `save` would violate the primary key
 constraint
 on the `session` table. That's why it's prevented by the test against
 `self._new`.

 I've also not been able to reproduce the issue. Maybe detailing the steps
 to reproduce the error and a relevant dump of the `session` table before
 and after would help to understand the issue.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3154>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list