Modify ↓
Opened 16 years ago
Closed 16 years ago
#8837 closed defect (invalid)
AttributeError: 'cStringIO.StringO' object has no attribute 'len'
| Reported by: | root | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
How to Reproduce
While doing a POST operation on /screenshots, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'41d92007911a4e1af83dcad6',
'action': u'post-add',
'description': u'1',
'id': u'',
'image': FieldStorage('image', '1.gif', 'GIF89a\x10\x00\x10\x00\x84\x16\x00+P\x1aAl-?\x875b\x91B\x8f\x93\x96]\xb2.p\xc4@{\xd23\x8c\xcam\x8f\xcdT\x87\xdbW\xa1\xd7{\xb4\xdd\x9d\xa6\xeag\xc6\xea\xb1\xd9\xf3\xc9\xe8\xef\xe4\xfd\xf1\xd0\xed\xf9\xe6\xfd\xfb\xff\xf7\xfd\xff\xfe\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff!\xfe\x11Created with GIMP\x00,\x00\x00\x00\x00\x10\x00\x10\x00\x00\x05j\xa0%\x8edi\x9e\xa85\x10,;\xa0\x83#7t#\x98q\xa2\xef\x89r\x8f\x81\x07O\xb7p\xf4\x00@F\x02\xb1C@&\x08E \xd9LH&B)\xf5\x11A<&\x0c\xc31\xe9\xad@(J\x83A\x81\x14\x05\xc2\x06\x84\x04^X\xb7-\x81E]\xacN\x14\nl$\x01\x08\x06\x7f\x86\x05\tS%\x01:\x07kk\x8a&\x01\x02\x94\x94w)(!\x00;'),
'index': u'0',
'name': u'1',
'priority': u'0',
'submit': u'Submit'}
User Agent was: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1 Firefox/3.0.6
System Information
| Trac | 0.12multirepos-r7815
|
| Python | 2.6 (r26:66714, Dec 3 2008, 06:05:48) [GCC 4.3.2 [gcc-4_3-branch revision 141291]]
|
| setuptools | 0.6c11
|
| psycopg2 | 2.0.8
|
| Genshi | 0.6dev-r999
|
| Babel | 0.9.4
|
| mod_python | 3.3.1
|
| Pygments | 1.0
|
| Subversion | 1.5.7 (r36142)
|
| jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/Trac-0.12multirepos_r7815-py2.6.egg/trac/web/main.py", line 457, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.6/site-packages/Trac-0.12multirepos_r7815-py2.6.egg/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/tracscreenshots/core.py", line 144, in process_request
template, content_type = self._do_actions(context, actions)
File "build/bdist.linux-i686/egg/tracscreenshots/core.py", line 271, in _do_actions
file, filename = self._get_file_from_req(context.req)
File "build/bdist.linux-i686/egg/tracscreenshots/core.py", line 657, in _get_file_from_req
size = image.file.len
AttributeError: 'cStringIO.StringO' object has no attribute 'len'
Attachments (0)
Note:
See TracTickets
for help on using tickets.



PluginIssue, please report the error to the trac screenshots plugin maintainer.