SchemaFile KeyError on Filename in add_newsitem

Bug #813470 reported by JimPGlenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Won't Fix
Medium
Chris Rossi

Bug Description

reported via error monitor:

Wed Jul 20 08:20:52 2011 Exception when processing https://karl.soros.org/offices/files/network-news/add_newsitem.html Referer: https://karl.soros.org/offices/files/network-news/add_newsitem.html Traceback (most recent call last): File "/srv/osfkarl/production/27/eggs/karl-3.68-py2.6.egg/karl/errorlog.py", line 16, in middleware return app(environ, start_response) File "/srv/osfkarl/production/27/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/27/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/27/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/27/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/27/eggs/repoze.urchin-0.1-py2.6.egg/repoze/urchin/__init__.py", line 20, in __call__ resp = req.get_response(self.app) File "/srv/osfkarl/production/27/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 920, in get_response application, catch_exc_info=False) File "/srv/osfkarl/production/27/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 888, in call_application app_iter = application(self.environ, start_response) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py", line 130, in __call__ response = view_callable(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1520, in __call__ return view(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1805, in attr_view return view(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1738, in predicate_wrapper return view(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view return view(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view response = view(context, request) File "/srv/osfkarl/production/27/eggs/repoze.bfg.formish-0.3-py2.6.egg/repoze/bfg/formish/zcml.py", line 174, in __call__ return submitted(request, form, controller, self.action, controller) File "/srv/osfkarl/production/27/eggs/repoze.bfg.formish-0.3-py2.6.egg/repoze/bfg/formish/zcml.py", line 209, in submitted converted = form.validate(request, check_form_name=False) File "/srv/osfkarl/production/27/eggs/formish-0.8.5.2agendaless-py2.6.egg/formish/forms.py", line 1019, in validate data = self._validate(request, skip_read_only_defaults=skip_read_only_defaults) File "/srv/osfkarl/production/27/eggs/formish-0.8.5.2agendaless-py2.6.egg/formish/forms.py", line 1037, in _validate data = self.get_unvalidated_data(self._request_data, raise_exceptions=False, skip_read_only_defaults=skip_read_only_defaults) File "/srv/osfkarl/production/27/eggs/formish-0.8.5.2agendaless-py2.6.egg/formish/forms.py", line 919, in get_unvalidated_data data = self.widget.from_request_data(self.structure, request_data, skip_read_only_defaults=skip_read_only_defaults) File "/srv/osfkarl/production/27/eggs/formish-0.8.5.2agendaless-py2.6.egg/formish/widgets.py", line 470, in from_request_data data[f.nodename] = f.widget.from_request_data(f, request_data.get(f.nodename)) File "/srv/osfkarl/production/27/eggs/karl-3.68-py2.6.egg/karl/views/forms/widgets.py", line 293, in from_request_data return SchemaFile(f, headers['Filename'], headers['Content-Type']) KeyError: 'Filename'

JimPGlenn (jpglenn09)
Changed in karl3:
importance: Undecided → Medium
milestone: none → m65
milestone: m65 → m66
assignee: nobody → Chris Rossi (chris-archimedeanco)
summary: - Exception when processing https://karl.soros.org/offices/files/network-
- news/add_newsitem.html
+ SchemaFile KeyError on Filename in add_newsitem
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

I am unable to reproduce this one. Looking at the stacktrace, it looks like the client sent invalid form data somehow. We should reopen if this continues to occur with any frequency.

Changed in karl3:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.