Andreas Hartmann said the following on 25.08.2005 11:32:
> Hi Cocoon devs,
>
> I'm facing a problem delivering PDFs using the ResourceReader.
>
> Firefox requests document chunks using range headers like
>
> Range: bytes=554530-555553,547362-554529,32768-547361
>
>
> The ResourceReader passes everything after the "=" to the
> ByteRange:
>
> ranges = ranges.substring(ranges.indexOf('=') + 1);
> byteRange = new ByteRange(ranges);
>
>
> The ByteRange complains about commas:
>
> if (string.indexOf(',') != -1) {
> throw new NumberFormatException(
> "Simple ByteRange String contains a comma.");
> }
>
>
> The ResourceReader sends a 416:
>
> ((HttpResponse)response).setStatus(416);
>
> which ends up in my browser (the download is interrupted).
>
>
> Is this a known issue?
> What can I do about it?Not quite sure if its about your issue, but there is a old thread about ResourcReader and PDFs: http://marc.theaimsgroup.com/?t=103896181500004&r=1&w=2 and in bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=7156 but that is closed and fixed. Oli -- Oliver Schalch [EMAIL PROTECTED] Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org
smime.p7s
Description: S/MIME Cryptographic Signature
