Opened 11 years ago

Last modified 11 years ago

#6532 new Bugs

KeyError: 'attachment'

Reported by: Trvus549@… Owned by: Ralf W. Grosse-Kunstleve
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.48.0 Severity: Not Applicable
Keywords: Cc:

Description

How to Reproduce

While doing a POST operation on /attachment/ticket/5372/, Trac issued an internal error.

(please provide additional details here) } void doSomething(boost::weak_ptr<int> weakp, int* number) {

int i = 0; while(++i<10000) {

User agent: Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/trac/attachment.py", line 448, in process_request
    self._do_save(req, attachment)
  File "build/bdist.linux-i686/egg/trac/attachment.py", line 620, in _do_save
    upload = req.args['attachment']
KeyError: 'attachment'

Change History (1)

comment:1 by Travus549@…, 11 years ago

void doSomething(boost::weak_ptr<int> weakp, int* number) {

int i = 0; while(++i<10000) {

Note: See TracTickets for help on using tickets.