New submission from jmg <[email protected]>:
==== How to Reproduce ====
While doing a POST operation on `/attachment/ticket/3807`, Trac issued an internal error.
{'action': u'new',
'attachment': FieldStorage('attachment', 'http.patch', "--- http.py.orig\tThu Apr 30 14:40:13 2009\n+++ http.py\tThu Apr 30 14:40:32 2009\n@@ -794,6 +794,7 @@\n if (not self.lastModified) or (self.lastModified < when):\n self.lastModified = when\n \n+ when = self.lastModified\n modified_since = self.getHeader('if-modified-since')\n if modified_since:\n modified_since = stringToDatetime(modified_since.split(';', 1)[0])\n"),
'description': u'Patch fixing the problem.',
'id': u'3807',
'path': u'3807',
'type': u'ticket'}
==== System Information ====
|| '''Python''' || `2.5.2 (r252:60911, Jul 31 2008, 17:28:52) `[[br]]`[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]`[[br]] ||
|| '''Subversion''' || `1.4.6` ||
|| '''SQLite''' || `3.4.2` ||
|| '''pysqlite''' || `2.4.0` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/srv/trac/.local/lib/python2.5/site-packages/trac/web/main.py", line 377, in dispatch_request
dispatcher.dispatch(req)
File "/srv/trac/.local/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/srv/trac/.local/lib/python2.5/site-packages/trac/attachment.py", line 383, in process_request
self._do_save(req, attachment)
File "/srv/trac/.local/lib/python2.5/site-packages/trac/attachment.py", line 461, in _do_save
size = upload.file.len
AttributeError: 'cStringIO.StringO' object has no attribute 'len'
}}}
Just attempted to include an attachment as part of a new bug.
----------
Type : defect
Component: core
Keywords :
Priority : normal
Nosy :
----------
http://twistedmatrix.com/trac/ticket/3808
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.