#1068: FormEncode-0.5.1 crashes when processing empty form in Opera.
----------------------+-----------------------------------------------------
Reporter: jargon | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy | Version: 0.9a5
Severity: major | Keywords: Opera form with no fields
----------------------+-----------------------------------------------------
When I use following form in Opera web browser:
<form action="test" method="post" enctype="multipart/form-data">
<input type="submit" value="OK"/>
</form>
The Turbogears prints exception report
Traceback (most recent call last):
File "/usr/lib/python2.4/site-
packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 103, in
_run
applyFilters('before_main')
File "/usr/lib/python2.4/site-
packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py", line 151,
in applyFilters
method()
File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
py2.4.egg/turbogears/startup.py", line 137, in before_main
cherrypy.request.params = \
File "/usr/lib/python2.4/site-
packages/FormEncode-0.5.1-py2.4.egg/formencode/api.py", line 316, in
to_python
value = tp(value, state)
File "/usr/lib/python2.4/site-
packages/FormEncode-0.5.1-py2.4.egg/formencode/variabledecode.py", line
141, in _to_python
return variable_decode(value)
File "/usr/lib/python2.4/site-
packages/FormEncode-0.5.1-py2.4.egg/formencode/variabledecode.py", line
35, in variable_decode
keys = key.split(dict_char)
AttributeError: 'NoneType' object has no attribute 'split'
If I add a hidden field to the form the problem disappears, so the problem
seems to be in Operas way of submitting a form that has no fields at all.
The problem does not appear with Firefox so it is Opera related.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1068>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---