Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1068 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

FormEncode-0.5.1 crashes when processing empty form in Opera.

Reported by: jargon Owned by: anonymous
Priority: normal Milestone: 1.0b2
Component: TurboGears 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


File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/init.py", line 151, in applyFilters


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.

Change History

comment:1 Changed 13 years ago by jorge.vargas

  • Component changed from CherryPy to TurboGears
  • Milestone set to 1.0b2

anyone can confirm this?

comment:2 Changed 13 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

I [2252] should fix this. If it doesn't please reopen.


Note: See TracTickets for help on using tickets.