vgritsenko 2002/06/04 18:14:46 Modified: . Tag: cocoon_2_0_3_branch changes.xml . changes.xml src/java/org/apache/cocoon/reading Tag: cocoon_2_0_3_branch ResourceReader.java Log: Fix bug 9539: ResourceReader incorrectly advertises 'byte-range' support Revision Changes Path No revision No revision 1.138.2.17 +5 -2 xml-cocoon2/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/changes.xml,v retrieving revision 1.138.2.16 retrieving revision 1.138.2.17 diff -u -r1.138.2.16 -r1.138.2.17 --- changes.xml 31 May 2002 14:22:38 -0000 1.138.2.16 +++ changes.xml 5 Jun 2002 01:14:45 -0000 1.138.2.17 @@ -4,7 +4,7 @@ <!-- History of Cocoon changes - $Id: changes.xml,v 1.138.2.16 2002/05/31 14:22:38 vgritsenko Exp $ + $Id: changes.xml,v 1.138.2.17 2002/06/05 01:14:45 vgritsenko Exp $ --> <changes title="History of Changes"> @@ -37,10 +37,13 @@ <release version="@version@" date="@date@"> + <action dev="VG" type="fix" fixes-bug="9539" due-to="Stuart Roebuck" due-to-email="[EMAIL PROTECTED]"> + ResourceReader incorrectly advertised byte ranges support. + </action> <action dev="VG" type="fix" fixes-bug="8639"> Support Parameterizable URLFactories. </action> - <action dev="GF" type="fix" fixes-bug="9064" due-to="Jeroen ter Voorde" due-to-email=" [EMAIL PROTECTED]"> + <action dev="GF" type="fix" fixes-bug="9064" due-to="Jeroen ter Voorde" due-to-email="[EMAIL PROTECTED]"> Fixed multipart request problems with IE6. </action> <action dev="VG" type="fix" fixes-bug="3372"> 1.184 +4 -1 xml-cocoon2/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/changes.xml,v retrieving revision 1.183 retrieving revision 1.184 diff -u -r1.183 -r1.184 --- changes.xml 3 Jun 2002 18:08:56 -0000 1.183 +++ changes.xml 5 Jun 2002 01:14:46 -0000 1.184 @@ -4,7 +4,7 @@ <!-- History of Cocoon changes - $Id: changes.xml,v 1.183 2002/06/03 18:08:56 nicolaken Exp $ + $Id: changes.xml,v 1.184 2002/06/05 01:14:46 vgritsenko Exp $ --> <changes title="History of Changes"> @@ -38,6 +38,9 @@ </devs> <release version="@version@" date="@date@"> + <action dev="VG" type="fix" fixes-bug="9539" due-to="Stuart Roebuck" due-to-email="[EMAIL PROTECTED]"> + ResourceReader incorrectly advertised byte ranges support. + </action> <action dev="VG" type="remove"> Removed XT XSLT transformer. </action> No revision No revision 1.7.2.1 +4 -2 xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java Index: ResourceReader.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -u -r1.7 -r1.7.2.1 --- ResourceReader.java 20 Mar 2002 20:12:42 -0000 1.7 +++ ResourceReader.java 5 Jun 2002 01:14:46 -0000 1.7.2.1 @@ -86,7 +86,7 @@ * </dl> * * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a> - * @version CVS $Id: ResourceReader.java,v 1.7 2002/03/20 20:12:42 vgritsenko Exp $ + * @version CVS $Id: ResourceReader.java,v 1.7.2.1 2002/06/05 01:14:46 vgritsenko Exp $ */ public class ResourceReader extends AbstractReader @@ -169,7 +169,9 @@ // Response interface has not. Strange. response.setHeader("Content-Length", Long.toString(contentLength)); } - response.setHeader("Accept-Ranges", "bytes"); + + // Bug #9539: This resource reader does not support ranges + response.setHeader("Accept-Ranges", "none"); byte[] buffer = new byte[8192]; int length = -1;
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]