ozeigermann    2004/02/08 23:27:52

  Modified:    src/webdav/server/org/apache/slide/webdav/method Tag:
                        SLIDE_2_0_RELEASE_BRANCH GetMethod.java
  Log:
  Fix by Chris Sharp applied to patch by Chris Sharp: 
  The initial calculation assumed an exclusive range, not inclusive. The  
  spec is clearly an inclusive range, thereby requiring the additional  "+1".
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.40.2.3  +4 -4      
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/GetMethod.java
  
  Index: GetMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/GetMethod.java,v
  retrieving revision 1.40.2.2
  retrieving revision 1.40.2.3
  diff -u -r1.40.2.2 -r1.40.2.3
  --- GetMethod.java    5 Feb 2004 16:11:23 -0000       1.40.2.2
  +++ GetMethod.java    9 Feb 2004 07:27:51 -0000       1.40.2.3
  @@ -890,7 +890,7 @@
   
               }
   
  -            currentRange.length = (currentRange.end - currentRange.start);
  +            currentRange.length = (currentRange.end - currentRange.start + 1);
               if (!currentRange.validate()) {
                   response.sendError
                       (HttpServletResponse.SC_REQUESTED_RANGE_NOT_SATISFIABLE);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to