[Trac-tickets] [The Trac Project] #2582: Ticket duplication caused by unassigned value

The Trac Project noreply at edgewall.com
Tue Jan 10 21:55:41 CST 2006


#2582: Ticket duplication caused by unassigned value
---------------------------------------+------------------------------------
 Reporter:  sarahg at csse.monash.edu.au  |       Owner:  jonas
     Type:  defect                     |      Status:  new  
 Priority:  normal                     |   Milestone:       
Component:  general                    |     Version:  0.9.2
 Severity:  normal                     |    Keywords:       
---------------------------------------+------------------------------------
 In certain situations we've been getting duplicate emails. I think I
 finally narrowed it down:

 "row" is not defined in the code here, its still got a carry-on value from
 a previous definition:

 {{{
         # Harvest email addresses from the author field of
 ticket_change(s)
         if notify_reporter:
             cursor.execute("SELECT DISTINCT author,ticket FROM
 ticket_change "
                            "WHERE ticket=%s", (tktid,))
             for author,ticket in cursor:
                 recipients.append(row[0])

 }}}

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


More information about the Trac-Tickets mailing list