Wrote a test for this bug, it's attached to this comment. ** Attachment added: "Script to test the bug" https://bugs.launchpad.net/ubuntu/+source/python-werkzeug/+bug/1694261/+attachment/4886272/+files/test.py
** Description changed: [Impact] - * I've discovered this in a MoinMoin instance I admin, where there are + * 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='wiki.ubuntu-it.org:8801|'): Loading WSGI script '/srv/wiki.ubuntu-it.org/www/moin.wsgi'. [:error] mod_wsgi (pid=29522): Exception occurred processing WSGI script '/srv/wiki.ubuntu-it.org/www/moin.wsgi'. [:error] Traceback (most recent call last): [:error] File "/srv/wiki.ubuntu-it.org/www/moin.wsgi", line 71, in __call__ [:error] return self.app(environ, start_response) [:error] File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 558, in __call__ [:error] cleaned_path = cleaned_path.encode(sys.getfilesystemencoding()) [:error] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe0' in position 37: ordinal not in range(128) - [Test Case] - * I had a test case there, so I just tried to patch it, saw it works, - great. I'm sorry I'm not able to provide a better test case. + * https://bugs.launchpad.net/ubuntu/+source/python- + werkzeug/+bug/1694261/+attachment/4886272/+files/test.py [Regression Potential] - * The patch only changes all sys.getfilesystemencoding() calls with a local function, wrapping the same original call. The overall changeset seems low on regression potential. - * I've installed the proposed package in the wiki.ubuntu-it.org server and it is working :) + * The patch only changes all sys.getfilesystemencoding() calls with a local function, wrapping the same original call. The overall changeset seems low on regression potential. + * I've installed the proposed package in the wiki.ubuntu-it.org server and it is working :) [Other Info] - - * This is upstream bug https://github.com/pallets/werkzeug/issues/635 - fixed with upstream commit https://github.com/pallets/werkzeug/commit/bba0cdcc67d4a1160d4ed9d3f99aef170a79dd88 and released in version 0.11 and present in yakkety+. + + * This is upstream bug https://github.com/pallets/werkzeug/issues/635 - + fixed with upstream commit + https://github.com/pallets/werkzeug/commit/bba0cdcc67d4a1160d4ed9d3f99aef170a79dd88 + and released in version 0.11 and present in yakkety+. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1694261 Title: Crashes with UnicodeDecodeError when trying to handle paths with non- ascii chars To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-werkzeug/+bug/1694261/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs