On Wed, 24 Jan 2007 01:38:25 +0200, Ury Marshak <urym(a)two-bytes.com> wrote:
> Although I seem to have stumbled on a different issue with
> uploading. All it seems to take is to set the variable
> *hunchentoot-default-external-format* to utf-8.
Yes, this was already discussed a few days ago
http://common-lisp.net/pipermail/tbnl-devel/2007-January/000983.html
but I couldn't reproduce it. Your little test script was again very
helpful in this case... :)
I've now identified the error and just released a new version which
should fix this.
Thanks,
Edi.
On Mon, 22 Jan 2007 21:21:25 +0200, Ury Marshak <urym(a)two-bytes.com> wrote:
> For testing I'm using a small python script that repeatedly uploads
> the same file, it's available at
> http://85.65.214.241/misc/test-upload.tar.gz
Yes, I can reproduce the error. It seems (from my understanding of
the RFCs) the error is actually in the Python code - it sends two CRLF
sequences after the last content boundary where it should only send
one. (Firefox, IE, and Drakma for example don't do that.)
Anyway, I've tried to robustify Hunchentoot against erroneous client
data like this. You should now only see a warning in the log file. I
could upload 100 files in a row without problems using your test
script.
Also note that the new release now optionally accepts request bodies
without a content length when behind mod_lisp2. You'll need Hugh
Winkler's latest additions to mod_lisp2 for this.
Cheers,
Edi.
ChangeLog:
Version 0.5.0
2007-01-17
More flexible behaviour of RAW-POST-DATA
Robustified PARSE-CONTENT-TYPE
Download:
http://weitz.de/files/hunchentoot.tar.gz
Cheers,
Edi.
ChangeLog:
Version 0.4.13
2007-01-14
Added favicon.ico to example website (thanks to Yoni Rabkin Katzenell, Toby, and Uwe von Loh)
Download:
http://weitz.de/files/hunchentoot.tar.gz
Cheers,
Edi.