Hello-

I'm encountering an issue when posting large amounts of text data
through an HTML textarea. The functionality works fine until a certain
amount of data is put into the textarea then it barfs out. The log file
contains the following lines when this happens:

2005/12/13 08:39:24 HTTP INFO 127.0.0.1 - POST /survey2/save HTTP/1.1
2005/12/13 08:39:24  INFO Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_rc2-py2.4.egg/cher
rypy/_cphttptools.py", line 271, in run
    main()
  File
"/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_rc2-py2.4.egg/cher
rypy/_cphttptools.py", line 502, in main
    body = page_handler(*args, **cherrypy.request.paramMap)
  File
"/usr/local/lib/python2.4/site-packages/TurboGears-0.8a3-py2.4.egg/turbog
ears/controllers.py", line 121, in newfunc
    output = func(self, *args, **kw)
TypeError: save() got an unexpected keyword argument
'34567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
90123456789012345678901234567890123456789012345678901234567890123456789012345678
901234567890123456789012345678901234567890123456789012'

This output is the result of putting a string of about 3-4k of just
'0123456789' repeating over and over. What's strange is the error its
giving: "save() got an enexpected keyword argument" This message
usually pops up when you pass a request parameter that isn't defined in
your controller.

It usually makes reference to the parameter name that doesn't belong,
but here it's looking like TG is thinking part of the input is a
parameter!?? Very strange. I'm certainly no expert on the inner
workings of TG, but could it somehow be pulling the wrong stuff out of
the request?

If not, how in the world is TG thinking the value (or a substring) of a
parameter is actually its name?

Has anyone else come across this?

Thanks,
-J

Reply via email to