Hi folks,
we are experiencing an issue related to multipart forms: the client send that form, but our Pylons application receives bad information due to bad parse of the request.
This is an example of received params:
UnicodeMultiDict([('type', u'GenericAd'), ('category', u'67'), ('main_category', u'66'), ('category_66', u'67'), ('region', u'19'), ('province', u'17'), ('municipality', u'6951'), ('format', u'Ad'), ('telephone', u'01234566789'), ('telephone_2', u'0123456789\r\n------WebKitFormBoundaryaInD5WKU9eX3vTvC\r\nContent-Disposition: form-data; name="fax"\r\n\r\n1234567890'), ('e-mail', u'[email protected]'), ('website', u'http://www.asidev.com'), ('multiple_validator', u''), ('title', u'Sample'), ('reference', u'chr'), ('description', u"Sample description."), ('image', u''), ('issue', u'32\r\n------WebKitFormBoundaryaInD5WKU9eX3vTvC\r\nContent-Disposition: form-data; name="Salva"\r\n\r\n')])

We solved this issue using post-processing, as described in the thread: http://lists.unbit.it/pipermail/uwsgi/2011-September/002556.html
Do you know a better way to solve this issue?

The same application works well using Apache+Mod_WSGI or paster serve.

Best Regards,
Stefano.



Environment information:

nginx/1.0.11
uWSGI 0.9.9.3
Python 2.7.1+

pip freeze
Beaker==1.6.2
BeautifulSoup==3.0.8.1
CaptchaLib==0.2.4
Deployer==0.2.0b3
Elixir==0.7.1
FormEncode==1.2.4
Makako==0.1.1
Mako==0.5.0
MarkupSafe==0.15
MySQL-python==1.2.3
Paste==1.7.5.1
PasteDeploy==1.5.0
PasteScript==1.7.5
Pillow==1.7.5
PyMailer==0.1.2
PyRTF==0.45
Pygments==1.4
Pylons==0.10
Routes==1.12.3
SQLAlchemy==0.6.6
Tempita==0.5.1
WebError==0.10.3
WebHelpers==1.3
WebOb==1.1.1
WebTest==1.3.3
configobj==4.7.2
decorator==3.3.2
distribute==0.6.24
nose==1.1.2
-e bzr+bzr+ssh://bzr.asidev.com/srv/bzr/asidev/portal/1.0/stable/@75#egg=portal-0.2dev-py2.7-dev_r75
recaptcha-client==1.0.6
simplejson==2.3.0
wsgiref==0.1.2


--
Ing. Stefano Fontanelli
Asidev S.r.l.
Viale Rinaldo Piaggio, 32 - 56025 Pontedera (Pisa)
Tel. (+39) 333 36 53 294
Fax. (+39) 0587 97 01 20
E-mail: [email protected]
Skype: stefanofontanelli

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to