Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

#10754 closed defect (cantfix)

KeyError: 'attachment[]'

Reported by: marc.cuculiere@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.12.2
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'dda73947f5b2195331fe6175',
 'field_cc': u'',
 'field_component': u'Autre - pr\xe9ciser dans le ticket',
 'field_description': u"fichier :  actions.class.php\r\nLigne : 240\r\n\r\nD'apres la literature : If you use a function like count() inside a loop declaration, it's going to get executed at every iteration! If your loop is large, you're using a lot of extra execution time.\r\n\r\na eviter :\r\n{{{\r\nfor ($i = 0; $i < count($array); $i++) {\r\n//stuff\r\n}\r\n}}}\r\nrecommand\xe9:\r\n{{{\r\n$count = count($array);\r\nfor($i = 0; $i < $count; $i++) {\r\n//stuff\r\n}\r\n}}}",
 'field_keywords': u'',
 'field_milestone': u'milestone1 - Livraison Beta',
 'field_owner': u'ttpham',
 'field_priority': u'major',
 'field_reporter': u'ethicdev',
 'field_summary': u'[Revue de code] Performance tunning',
 'field_type': u'Correctif',
 'field_version': u'Beta - Interne',
 'submit': u'Create ticket'}

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2

System Information

Trac 0.12.2
Babel 0.9.6 (translations unavailable)
Genshi 0.6
GIT 1.7.2.5
MySQL server: "5.1.61-0+squeeze1", client: "5.1.61", thread-safe: 1
MySQLdb 1.2.2
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5]
setuptools 0.6
Subversion 1.6.12 (r955767)
jQuery 1.4.2

Enabled Plugins

AwesomeAttachmentsPlugin 0.2
TracGit 0.12.0.5dev

Python Traceback

Traceback (most recent call last):
  File "/home/ethicdev/public_html/trac/lib/python/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/ethicdev/public_html/trac/lib/python/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/ethicdev/public_html/trac/lib/python/Trac-0.12.2-py2.6.egg/trac/ticket/web_ui.py", line 170, in process_request
    return self._process_newticket_request(req)
  File "/home/ethicdev/public_html/trac/lib/python/Trac-0.12.2-py2.6.egg/trac/ticket/web_ui.py", line 398, in _process_newticket_request
    self._do_create(req, ticket) # (redirected if successful)
  File "/home/ethicdev/public_html/trac/trac/plugins/AwesomeAttachmentsPlugin-0.2-py2.6.egg/awesome/awesomattachments.py", line 101, in _do_create
    if(isinstance(req.args['attachment[]'], list)):
KeyError: 'attachment[]'

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 12 years ago

Resolution: cantfix
Status: newclosed

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.