File upload of a 60KB file fails with 'invalid body size', 'mainly' on linux
----------------------------------------------------------------------------
Key: JRUBY-2386
URL: http://jira.codehaus.org/browse/JRUBY-2386
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1
Environment: Debian sarge on intel xeon, java version "1.5.0_15",
jruby-1.1
Reporter: Andrés Cirugeda Esco
Assignee: Thomas E Enebo
Trying to upload a 60KB file results in a 'WEBrick::HTTPStatus::BadRequest:
invalid body size.' error.
Tracing the problem to the httprequest.rb file I added a simple debug message
to see the problem, just kept the @remaining_size in each iteration of the
while loop, the result was this:
60107---56011---51915---47819---43723---salida: 43723
The 'salida' and the last number are from outside the loop. So it seems the
loop breaks when there are still 43KB to read.
Uploading small files (around 4 KB) seems to run ok. Uploading the 60KB file on
a linux server fails always. Uploading the same 60KB file failed once when
running the server on my mac. That's the 'mainly' in the summary.
If you need me to perform any test or to provide any extra information, just
tell me.
Regards
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email