Unquotable character in File URL

Bug #905282 reported by Paul Everitt on 2011-12-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Medium
Chris Rossi

Bug Description

The File (image) in a Community Folder at:

  https://karl.soros.org/communities/freedom-of-information-legal-clinic/files/archivum/archivum-2009-2011/joosz-katalin/foi_clinic_jk_tanulmany-borito.jpg

...has a traceback on trying to quote the URL. There is a KeyError on the map.

Fri Dec 16 04:47:50 2011 Exception when processing https://karl.soros.org/communities/freedom-of-information-legal-clinic/files/archivum/archivum-2009-2011/joosz-katalin/foi_clinic_jk_tanulmany-borito.jpg/ Referer: None Traceback (most recent call last): File "/srv/osfkarl/production/35/eggs/karl-3.76-py2.6.egg/karl/errorlog.py", line 18, in middleware return app(environ, start_response) File "/srv/osfkarl/production/35/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py", line 88, in __call__ app_iter = self.application(environ, replace_start_response) File "/srv/osfkarl/production/35/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py", line 21, in __call__ result = self.next_app(environ, start_response) File "/srv/osfkarl/production/35/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py", line 23, in __call__ result = self.application(environ, save_status_and_headers) File "/srv/osfkarl/production/35/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py", line 107, in __call__ app_iter = app(environ, wrapper.wrap_start_response) File "/srv/osfkarl/production/35/eggs/repoze.urchin-0.2-py2.6.egg/repoze/urchin/__init__.py", line 53, in __call__ resp = req.get_response(self.app) File "/srv/osfkarl/production/35/eggs/WebOb-1.1.1-py2.6.egg/webob/request.py", line 1086, in get_response application, catch_exc_info=False) File "/srv/osfkarl/production/35/eggs/WebOb-1.1.1-py2.6.egg/webob/request.py", line 1055, in call_application app_iter = application(self.environ, start_response) File "/srv/osfkarl/production/35/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 176, in __call__ response = self.handle_request(request) File "/srv/osfkarl/production/35/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween response = handler(request) File "/srv/osfkarl/production/35/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request response = view_callable(context, request) File "/srv/osfkarl/production/35/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view return view(context, request) File "/srv/osfkarl/production/35/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 319, in viewresult_to_response result = view(context, request) File "/srv/osfkarl/production/35/eggs/karl-3.76-py2.6.egg/karl/content/views/files.py", line 531, in show_file_view filename=quote_plus(context.filename), File "/usr/lib/python2.6/urllib.py", line 1230, in quote_plus s = quote(s, safe + ' ') File "/usr/lib/python2.6/urllib.py", line 1224, in quote res = map(safe_map.__getitem__, s) KeyError: u'\xe1'

Paul Everitt (paul-agendaless) wrote :

Chris fixed it and Robert released it today.

Changed in karl3:
assignee: Carlos de la Guardia (cguardia) → Chris Rossi (chris-archimedeanco)
milestone: m86 → m85
status: New → Fix Released
tags: added: r3.77
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers