Ticket #1834 defect closed fixed

Opened 8 years ago

Last modified 4 years ago

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) (diff)

1. go to  http://twistedmatrix.com/trac/newticket

2. In the field at the top of that form labeled "Your email or username:", enter your email.

3. Submit the ticket

4. 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

1

Changed 8 years ago by tekNico

  • status changed from new to assigned
  • cc tekNico added
  • description modified (diff)

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.

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.

4

Changed 4 years ago by exarkun

  • status changed from assigned to closed
  • resolution set to fixed

No longer an issue for quite some time.

Note: See TracTickets for help on using tickets.