#3154: Problem with storing authenticated sessions in DB
------------------------------------+---------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        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/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to