Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9408 closed defect (cantfix)

KeyError: 'hours'

Reported by: mcpbalaji@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /newticket, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'2a7096fbbc4e44ef71358de1',
 'field_backlog': u'no backlog',
 'field_blockedby': u'df',
 'field_blocking': u'sdf',
 'field_cc': u'balaji',
 'field_clientrate': u'sdf',
 'field_component': u'component1',
 'field_description': u'test',
 'field_hard_deadline1': u'fds',
 'field_hard_deadline2': u'sdf',
 'field_keywords': u'sdf',
 'field_milestone': u'',
 'field_owner': u'fdf',
 'field_priority': u'major',
 'field_reporter': u'admin',
 'field_status': u'new',
 'field_summary': u'teest',
 'field_type': u'defect',
 'field_version': u'',
 'submit': u'Create ticket'}

System Information

Trac 0.11.7
Python 2.5.2 (r252:60911, Jul 22 2009, 15:52:25)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
setuptools 0.6c11
SQLite 3.4.2
pysqlite 2.3.2
Genshi 0.7dev-r1134
mod_python 3.3.1
Subversion 1.4.6 (r28521)
CustomFieldAdmin 0.2.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 183, in process_request
    return self._process_newticket_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 399, in _process_newticket_request
    self._do_create(req, ticket) # (redirected if successful)
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/web_ui.py", line 1000, in _do_create
    ticket.insert()
  File "/usr/lib/python2.5/site-packages/Trac-0.11.7-py2.5.egg/trac/ticket/model.py", line 214, in insert
    listener.ticket_created(self)
  File "build/bdist.linux-i686/egg/notify/notify.py", line 45, in ticket_created
    self.build_url(ticket, 'created')
  File "build/bdist.linux-i686/egg/notify/notify.py", line 59, in build_url
    hours = ticket.values['hours']
KeyError: 'hours'

Attachments (0)

Change History (2)

comment:1 by anonymous, 14 years ago

Please give me a solution for this….

comment:2 by Christian Boos, 14 years ago

Resolution: cantfix
Status: newclosed

Sorry, this is a PluginIssue. The first step to get a solution is to ask for it at the proper place…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.