id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 9880 ValueError: Invalid boundary in multipart form: '' tg@… Christian Boos "==== How to Reproduce ==== While doing a POST operation on `/attachment/wiki/RESTfulAPI/`, Trac issued an internal error. ''(please provide additional details here)'' Request parameters: {{{ {'action': u'new', 'description': u'JustDrive MAPP RESTFUL API Reference', 'id': u'RESTfulAPI', 'realm': u'wiki'} }}} User agent: `Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0C)` ==== System Information ==== || '''`Trac`''' || `0.12` || || '''`Babel`''' || `0.9.5` || || '''`Docutils`''' || `0.7` || || '''`FullBlog`''' || `0.1.1` || || '''`Genshi`''' || `0.6` || || '''`Pygments`''' || `1.3.1` || || '''`pysqlite`''' || `2.4.1` || || '''`Python`''' || `2.6.6 (r266:84292, Sep 24 2010, 01:08:42) ` [[br]] `[GCC 4.2.1 20070719 [FreeBSD]]` || || '''`pytz`''' || `2010l` || || '''`setuptools`''' || `0.6c11` || || '''`SilverCity`''' || `0.9.7` || || '''`SQLite`''' || `3.7.2` || || '''`Subversion`''' || `1.6.13 (r1002816)` || || '''`jQuery`''' || `1.4.2` || ==== Enabled Plugins ==== || '''`TracAccountManager`''' || `0.2.1dev` || || '''`TracFullBlogPlugin`''' || `0.1.1` || ==== Python Traceback ==== {{{ Traceback (most recent call last): File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/main.py"", line 511, in _dispatch_request dispatcher.dispatch(req) File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/main.py"", line 193, in dispatch if handler.match_request(req): File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/attachment.py"", line 408, in match_request req.args['realm'] = realm File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/api.py"", line 212, in __getattr__ value = self.callbacks[name](self) File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/api.py"", line 195, in 'args': lambda req: arg_list_to_args(req.arg_list), File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/api.py"", line 212, in __getattr__ value = self.callbacks[name](self) File ""build/bdist.freebsd-8.1-RELEASE-p1-i386/egg/trac/web/api.py"", line 560, in _parse_arg_list fs = cgi.FieldStorage(fp, environ=self.environ, keep_blank_values=True) File ""/usr/local/lib/python2.6/cgi.py"", line 508, in __init__ self.read_multi(environ, keep_blank_values, strict_parsing) File ""/usr/local/lib/python2.6/cgi.py"", line 637, in read_multi environ, keep_blank_values, strict_parsing) File ""/usr/local/lib/python2.6/cgi.py"", line 508, in __init__ self.read_multi(environ, keep_blank_values, strict_parsing) File ""/usr/local/lib/python2.6/cgi.py"", line 622, in read_multi raise ValueError, 'Invalid boundary in multipart form: %r' % (ib,) ValueError: Invalid boundary in multipart form: '' }}}" defect closed normal 0.12.5 attachment 0.12 normal fixed upload multipart Fix upload of files which are categorized as having a multipart/related content type (e.g. *.mht files).