Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

#10440 closed defect (cantfix)

KeyError: 'attachment[]'

Reported by: asmaa.mohamed Owned by:
Priority: normal Milestone:
Component: ticket system 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.

after i install AwesomeAttachmentsPlugin

Request parameters:

{'__FORM_TOKEN': u'b8f6429dd469a654b97423c8',
 'attachment': u'on',
 'field_admin_build': u'64',
 'field_agent_build': u'15',
 'field_appserver_build': u'80',
 'field_cause': u'Requirement Error',
 'field_cc': u'',
 'field_component': u'EMS-Installer',
 'field_description': u'',
 'field_developer': u'Fady Angelo',
 'field_epay_build': u'5',
 'field_keywords': u'',
 'field_osm_build': u'11',
 'field_owner': u'',
 'field_reporter': u'asmaa.mohamed',
 'field_severity': u'major',
 'field_summary': u'3333',
 'field_type': u'Bug',
 'field_version': u'1.0',
 'submit': u'Create ticket'}

System Information

Trac 0.11.7
Python 2.7 (r27:82500, Oct 30 2011, 08:42:15)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
setuptools 0.6c11
MySQL server: "5.5.17-cll", client: "5.1.59", thread-safe: 0
MySQLdb 1.2.3
Genshi 0.6
mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
CustomFieldAdmin 0.2.6-r10460

Python Traceback

Traceback (most recent call last):
  File "/opt/python2.7/lib/python2.7/site-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/python2.7/lib/python2.7/site-packages/Trac-0.11.7-py2.7.egg/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/opt/python2.7/lib/python2.7/site-packages/Trac-0.11.7-py2.7.egg/trac/ticket/web_ui.py", line 183, in process_request
    return self._process_newticket_request(req)
  File "/opt/python2.7/lib/python2.7/site-packages/Trac-0.11.7-py2.7.egg/trac/ticket/web_ui.py", line 399, in _process_newticket_request
    self._do_create(req, ticket) # (redirected if successful)
  File "build/bdist.linux-x86_64/egg/awesome/awesomattachments.py", line 101, in _do_create
    if(isinstance(req.args['attachment[]'], list)):
KeyError: 'attachment[]'

Attachments (0)

Change History (2)

comment:1 by anonymous, 13 years ago

Component: generalticket system

comment:2 by Jun Omae, 13 years ago

Priority: highnormal
Resolution: cantfix
Severity: blockernormal
Status: newclosed

PluginIssue (th:AwesomeAttachmentsPlugin). It seems that it is the same as th:#9071.

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.