Opened 8 years ago

Closed 4 years ago

#1834 defect closed fixed (fixed)

Trac spews a RuntimeError when creating a New Ticket under some conditions.

Reported by: indigo Owned by: tekNico
Priority: low Milestone:
Component: website Keywords:
Cc: tekNico, thijs Branch:
Author: Launchpad Bug:

Description (last modified by tekNico)

  1. go to http://twistedmatrix.com/trac/newticket
  1. In the field at the top of that form labeled "Your email or username:", enter your email.
  1. Submit the ticket
  1. get something like this:
Traceback (most recent call last):
  File "/home/trac/Projects/trac/trunk/trac/web/main.py", line 283, in dispatch_request
    dispatcher.dispatch(req)
  File "/home/trac/Projects/trac/trunk/trac/web/main.py", line 170, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/trac/Projects/trac/trunk/trac/ticket/web_ui.py", line 83, in process_request
    self._do_create(req, db)
  File "/home/trac/Projects/trac/trunk/trac/ticket/web_ui.py", line 138, in _do_create
    ticket.insert(db=db)
  File "/home/trac/Projects/trac/trunk/trac/ticket/model.py", line 196, in insert
    tktObs.ticket_added(self)
  File "/home/trac/projects/trac/plugins/TICKET_EMAILER_MAN-ONE-py2.4.egg/ticket_emailer/ticket_emailer.py", line 128, in ticket_added
  File "/home/trac/projects/trac/plugins/TICKET_EMAILER_MAN-ONE-py2.4.egg/ticket_emailer/ticket_emailer.py", line 95, in ticketAddedMessage
  File "/home/trac/projects/trac/plugins/TICKET_EMAILER_MAN-ONE-py2.4.egg/ticket_emailer/ticket_emailer.py", line 86, in baseMessage
  File "/home/trac/projects/trac/plugins/TICKET_EMAILER_MAN-ONE-py2.4.egg/ticket_emailer/ticket_emailer.py", line 53, in ticketVars
RuntimeError: Visit the 'User Configuration' page and enter an email address before you create a ticket.

Change History (4)

comment:1 Changed 8 years ago by tekNico

  • Cc tekNico added
  • Description modified (diff)
  • Status changed from new to assigned

comment:2 Changed 8 years ago by exarkun

The source for TICKET_EMAILER_MAN is here:

http://divmod.org/trac/browser/sandbox/exarkun/ticket-emailer

We can relocate it or figure something else out if you want to make some changes.

comment:3 Changed 5 years ago by thijs

  • Cc thijs added
  • Priority changed from normal to low

How should this be fixed? http://divmod.org/trac/changeset/11238/sandbox/exarkun/ticket-emailer/ticket_emailer/ticket_emailer.py introduced the change, but other bugfixes have been added since then, not sure if it's still an issue.

comment:4 Changed 4 years ago by exarkun

  • Resolution set to fixed
  • Status changed from assigned to closed

No longer an issue for quite some time.

Note: See TracTickets for help on using tickets.