You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http -f post http://127.0.0.1:31337/upload "file@/tmp/t'es't.txt"
Traceback (most recent call last):
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "<ipython-input-6-c04743f50a59>", line 4, in upload
print request.form
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/utils.py", line 73, in __get__
value = self.func(obj)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 523, in form
self._load_form_data()
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/flask/wrappers.py", line 185, in _load_form_data
RequestBase._load_form_data(self)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 371, in _load_form_data
mimetype, content_length, options)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 195, in parse
content_length, options)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 100, in wrapper
return f(self, stream, *args, **kwargs)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 212, in _parse_multipart
form, files = parser.parse(stream, boundary, content_length)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 519, in parse
return self.cls(form), self.cls(files)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/datastructures.py", line 406, in __init__
for key, value in mapping or ():
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 517, in <genexpr>
form = (p[1] for p in formstream if p[0] == 'form')
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 476, in parse_parts
for ellt, ell in self.parse_lines(file, boundary, content_length):
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/formparser.py", line 403, in parse_lines
disposition, extra = parse_options_header(disposition)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/werkzeug/http.py", line 368, in parse_options_header
option_value = _unquote(option_value).decode(encoding)
LookupError: unknown encoding: "t
I can reproduce this in Flask but I'm pretty sure this is a bug in Werkzeug.
Installed versions: Flask==0.12.2, Werkzeug==0.12.2
The text was updated successfully, but these errors were encountered: