#6403 Tracker email notification setting breaks API ticket creation

v1.0.0
closed
sf-1 (616)
Tracker
Cory Johns
2015-08-20
2013-06-25
Cory Johns
No
File '/var/local/allura/ForgeTracker/forgetracker/tracker_main.py', line 1589 in new
  ticket.update(ticket_form)
File '/var/local/allura/ForgeTracker/forgetracker/model/ticket.py', line 838 in update
  self.commit()
File '/var/local/allura/ForgeTracker/forgetracker/model/ticket.py', line 775 in commit
  n.send_simple(monitoring_email)
File '/var/local/allura/Allura/allura/model/notification.py', line 234 in send_simple
  text=(self.text or '') + self.footer(toaddr))
File '/var/local/allura/Allura/allura/model/notification.py', line 224 in footer
  return self.ref.artifact.get_mail_footer(self, toaddr)
AttributeError: 'NoneType' object has no attribute 'artifact'

New tickets via the web work fine, so it's something specific to the REST API that causes ref to be None.

Discussion

  • Cory Johns - 2013-06-25
    • Milestone: forge-backlog --> forge-jun-28
     
    • status: open --> in-progress
    • assigned_to: Tim Van Steenburgh
     
    • status: in-progress --> code-review
    • Size: --> 1
     
  • Cory Johns - 2013-06-26
    • QA: Cory Johns
     
  • Cory Johns - 2013-06-26
    • status: code-review --> closed
     

Log in to post a comment.