From: Carles B. <cba...@is...> - 2010-06-16 08:57:25
|
Thanks Sven, you saved my life :) I applied the patch to my Django 1.1 I use with Jython and it worked like a charm. I owe you a beer. Carles Sven Klemm wrote: > Hi Carles, > >> I'm using Django-on-Jython and after uploading a WAR file to my local >> Tomcat server my app works fine. Then I upload it to a production >> server and the forms that use multipart/form-data encoding fail (e.g. >> the admin forms, plus my app's file uploads...). The multipart data >> is not parsed correctly, it's like the boundaries is not identified >> correctly and some of the form fields get weird data (like >> "-----------", which is part of the value of the boundary string). >> >> Jython version is 2.5.1 > > I stumbled across the same problem and found the cause. This is a bug > in the django multipart parser. It assumes read works non-blocking > which is obviously not the case under tomcat. You can find the patch > in the django bugtracker: > > http://code.djangoproject.com/ticket/13756 > > Cheers, > Sven > |