#668: Negative integers for ticket IDs
---------------------+-----------------
  Reporter:  olemis  |    Owner:
      Type:  defect  |   Status:  new
  Priority:  major   |  Version:  0.7.0
Resolution:          |
---------------------+-----------------
 In an environment (DB=postgresql) upgraded to work against 0.8-dev (i.e.
 current /trunk) I've executed an RPC request to invoke `ticket.create`
 method in batch (i.e. using `system.multicall`). The ticket IDs I got are
 all set to `-1` instead of expected positive integers in product-specific
 sequence. In the log s I also notice this error.

 [[span(Log entry, class=label label-success)]]
 {{{
 2013-09-24 07:54:53,489 Trac[ticket] ERROR: Failure sending notification
 on creation of ticket #-1: local variable 'reporter' referenced before
 assignment
 }}}

 [[span(Log entry, class=label label-success)]]
 {{{#!py
 Traceback (most recent call last):
   File "/path/to/bloodhound_rpc/trunk/tracrpc/ticket.py", line 175, in
 create
     tn.notify(t, newticket=True)
   File "/path/to/bloodhound/trac/trac/ticket/notification.py", line 156,
 in notify
     self._notify(ticket, newticket, modtime)
   File "/path/to/bloodhound/trac/trac/ticket/notification.py", line 270,
 in _notify
     NotifyEmail.notify(self, ticket.id, subject, author)
   File "/path/to/bloodhound/trac/trac/notification.py", line 344, in
 notify
     Notify.notify(self, resid)
   File "/path/to/bloodhound/trac/trac/notification.py", line 230, in
 notify
     (torcpts, ccrcpts) = self.get_recipients(resid)
   File "/path/to/bloodhound/trac/trac/ticket/notification.py", line 388,
 in get_recipients
     tktid, self.prev_cc)
   File "/path/to/bloodhound/trac/trac/ticket/notification.py", line 129,
 in get_ticket_notification_recipients
     return (torecipients, ccrecipients, reporter, owner)
 UnboundLocalError: local variable 'reporter' referenced before assignment
 }}}

 This is working fine in my local working copy with an environment
 DB=sqlite .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/668>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to