#10274 NORM -: cannot attach file to ticket: Trac throws MemoryError
Zarro Boogs per Child
bugtracker at laptop.org
Wed Aug 4 02:52:25 EDT 2010
#10274: cannot attach file to ticket: Trac throws MemoryError
--------------------------+-------------------------------------------------
Reporter: sascha_silbe | Owner: Quozl
Type: defect | Status: new
Priority: normal | Milestone:
Component: trac | Version:
Keywords: | Next_action: never set
Verified: 0 | Deployment_affected:
Blockedby: | Blocking:
--------------------------+-------------------------------------------------
When trying to attach a file (1654 byte text file) to a ticket, Trac fails
with a MemoryError.
==== How to Reproduce ====
While doing a POST operation on `/attachment/ticket/10232/`, Trac issued
an internal error.
''(please provide additional details here)''
Request parameters:
{{{
{'action': u'new',
'description': u'WIP patch to force reassociation after resume
(untested)',
'id': u'10232',
'realm': u'ticket'}
}}}
==== System Information ====
|| '''Trac''' || `0.11stable-r7346` ||
|| '''Python''' || `2.5.2 (r252:60911, Jul 31 2008, 17:49:46) ` [[br]]
`[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]` ||
|| '''setuptools''' || `0.6c7` ||
|| '''psycopg2''' || `2.0.6` ||
|| '''Genshi''' || `0.5.1` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/home/coderanger/src/trac/trac/web/main.py", line 423, in
_dispatch_request
dispatcher.dispatch(req)
File "/home/coderanger/src/trac/trac/web/main.py", line 164, in dispatch
if handler.match_request(req):
File "/home/coderanger/src/trac/trac/attachment.py", line 353, in
match_request
req.args['realm'] = realm
File "/home/coderanger/src/trac/trac/web/api.py", line 168, in
__getattr__
value = self.callbacks[name](self)
File "/home/coderanger/src/trac/trac/web/api.py", line 444, in
_parse_args
fs = cgi.FieldStorage(fp, environ=self.environ,
keep_blank_values=True)
File "/usr/lib/python2.5/cgi.py", line 534, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
File "/usr/lib/python2.5/cgi.py", line 657, in read_multi
headers = rfc822.Message(self.fp)
File "/usr/lib/python2.5/rfc822.py", line 104, in __init__
self.readheaders()
File "/usr/lib/python2.5/rfc822.py", line 151, in readheaders
line = self.fp.readline()
MemoryError
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/10274>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list