Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Mentioned problem is caused by casting of count long value into int type in writeTo(OutputStream out,long start,long count) method of org.mortbay.resource.Resource class.
If count argument has nonnegative value exceeding scope of int type then not all data will be copied to output stream. Look at the following line:
line 493: IO.copy(in,out,(int)count);
whilst it should be:
line 493: IO.copy(in,out,count);
This bug exists also in Jetty 5.
Fixed in svn head.
Do you mind telling me what client you are using that does range requests. The only one I know if
is acroread, so I am keen to know of more to justify the hard work implementing range support.
cheers