Crashes with UnicodeDecodeError when trying to handle paths with non-ascii chars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-werkzeug (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Won't Fix
|
Medium
|
Mattia Rizzolo | ||
Xenial |
Won't Fix
|
Medium
|
Mattia Rizzolo |
Bug Description
[Impact]
* I've discovered this in a MoinMoin instance I admin, where there are pages with non-ascii character (i.e. àèéìòù), there trying to open a page with said name yields
[:info] mod_wsgi (pid=29522, process='', application=
[:error] mod_wsgi (pid=29522): Exception occurred processing WSGI script '/srv/wiki.
[:error] Traceback (most recent call last):
[:error] File "/srv/wiki.
[:error] return self.app(environ, start_response)
[:error] File "/usr/lib/
[:error] cleaned_path = cleaned_
[:error] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe0' in position 37: ordinal not in range(128)
[Test Case]
[Regression Potential]
* The patch only changes all sys.getfilesyst
* I've installed the proposed package in the wiki.ubuntu-it.org server and it is working :)
[Other Info]
* This is upstream bug https:/
Changed in python-werkzeug (Ubuntu): | |
assignee: | Mattia Rizzolo (mapreri) → nobody |
Changed in python-werkzeug (Ubuntu Xenial): | |
assignee: | nobody → Mattia Rizzolo (mapreri) |
status: | Confirmed → In Progress |
Changed in python-werkzeug (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Wrote a test for this bug, it's attached to this comment.