large form value bug for cherrpy 2.3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

large form value bug for cherrpy 2.3


I am using cherrypy 2.3 in conjunction with turbogears 1.0.8 and am
trouble with large form value being decoded by cherrypy.

The error manifests itself as such:

Traceback (most recent call last):
  File "/home/bisquik/bisque-stable/bqenv/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg/cherrypy/", line 114, in _run
  File "/home/bisquik/bisque-stable/bqenv/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg/cherrypy/", line 249, in
  File "/home/bisquik/bisque-stable/bqenv/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg/cherrypy/lib/", line 379, in
    value = valueList.value # It's a regular field
  File "/usr/lib/python2.5/", line 551, in __getattr__
    value =
TypeError: read() takes exactly 2 arguments (1 given)

We have tracked this down to the special handling done by

The issues is in multiform fields that have field length of over 1000
bytes.  The
FieldStorage class silently converts these into file-like objects
backed up on the file system
by a temporary file.

We have resolved the issue by replacing references to
_cpcgifs.FieldStorage to
simply use the standard module cgi.FieldStorage  in
Aft this change the field problem is handled  correctly.

However, since we distribute the software, we would prefer not to have
to provide patched
versions of cherrypy..   Are there any plans on providing a 2.3.1
release in the future?

You received this message because you are subscribed to the Google Groups "cherrypy-devel" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at