Re: ResourceReader and multiple ranges
Oliver Schalch wrote: Andreas Hartmann said the following on 25.08.2005 11:32: Hi Cocoon devs, I'm facing a problem delivering PDFs using the ResourceReader. [...] Not quite sure if its about your issue, but there is a old thread about ResourcReader and PDFs: http://marc.theaimsgroup.com/?t=10389618154&r=1&w=2 and in bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=7156 but that is closed and fixed. IIUC this addresses another issue. But thanks for the pointer anyway :) -- Andreas
Re: ResourceReader and multiple ranges
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-53,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=10389618154&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
ResourceReader and multiple ranges
Hi Cocoon devs, I'm facing a problem delivering PDFs using the ResourceReader. Firefox requests document chunks using range headers like Range: bytes=554530-53,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