Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
large form value bug for cherrpy 2.3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kgk  
View profile  
 More options Jun 25, 6:13 pm
From: kgk <kkvilek...@gmail.com>
Date: Thu, 25 Jun 2009 15:13:13 -0700 (PDT)
Local: Thurs, Jun 25 2009 6:13 pm
Subject: large form value bug for cherrpy 2.3
I am using cherrypy 2.3 in conjunction with turbogears 1.0.8 and am
having
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/_cphttptools.py", line 114, in _run
    self.processBody()
  File "/home/bisquik/bisque-stable/bqenv/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py", line 249, in
processBody
    self.params.update(httptools.paramsFromCGIForm(forms))
  File "/home/bisquik/bisque-stable/bqenv/lib/python2.5/site-packages/
CherryPy-2.3.0-py2.5.egg/cherrypy/lib/httptools.py", line 379, in
paramsFromCGIForm
    value = valueList.value # It's a regular field
  File "/usr/lib/python2.5/cgi.py", line 551, in __getattr__
    value = self.file.read()
TypeError: read() takes exactly 2 arguments (1 given)

We have tracked this down to the special handling done by
  _cpcgifs.FieldStorage

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 _cphttptools.py.
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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google