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?

Environment:

- Cocoon 2.1.7
- Tomcat 5.5.9


Thanks in advance!

-- Andreas

Reply via email to