Issue #890 resolved

multipart/* messages error on PageHandler.__call__

Robert Brewer
created an issue


When a request message of type 'multipart/mixed' arrives, cgi.FieldStorage stores any parts which have no Content-Disposition with a .name of None; thecherrypy.lib.http.params_from_CGI_form function then sticks these values into request.params with a key of None. When the PageHandler is called, it tries to pass these unnamed parts as keyword args, and since one of them has a key of None, Python errors:



File "C:\Python25\lib\site-packages\", line 609, in respond cherrypy.response.body = self.handler() File "C:\Python25\lib\site-packages\", line 25, in call return self.callable(self.args, *self.kwargs) TypeError: upload() keywords must be strings }}}

Comments (2)

  1. Log in to comment