Tomcat seems to report unknown file size when sending a file as large as 4gb. maybe it hit the int limit?
This looks like the mirror of 30152. The fix should be similar.
I am not familer with HTTP PUT semantics, so I am not sure its the same. I used HTTP GET. this bug is supposengly fixed in newer versions?
This issue is not fixed in any current release. I have committed a patch to CVs that should fix it. This fix will therefore be included in the next release.