cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schalch <oliver.scha...@wyona.com>
Subject Re: ResourceReader and multiple ranges
Date Sun, 28 Aug 2005 16:13:56 GMT
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                           oliver.schalch@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

Mime
View raw message