cmlenz      2002/07/31 12:25:56

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PropFindMethod.java
  Log:
  Fix PROPFIND response when scope parameter is set.
  Based on patch by Jean-Philippe Courson.
  Thanks Jean-Philippe for tracking this down!
  
  Revision  Changes    Path
  1.76      +5 -5      
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java
  
  Index: PropFindMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- PropFindMethod.java       26 Jun 2002 05:00:00 -0000      1.75
  +++ PropFindMethod.java       31 Jul 2002 19:25:55 -0000      1.76
  @@ -472,7 +472,7 @@
                   
                   isCollection = WebdavUtils.isCollection(revisionDescriptor);
                   
  -                String path = object.getUri();
  +                String path = 
object.getUri().substring(getConfig().getScope().length());
                   
                   
hrefElement.setText(WebdavUtils.encodeURL(PropertyHelper.getAbsoluteURL(serverURL, 
req.getContextPath(), path), "UTF-8"));
                   
  @@ -489,7 +489,7 @@
                       resourceName = resourceName.substring(lastSlash + 1);
                   revisionDescriptor.setName(resourceName);
                   
  -                String path = object.getUri();
  +                String path = 
object.getUri().substring(getConfig().getScope().length());
                   
                   
hrefElement.setText(WebdavUtils.encodeURL(PropertyHelper.getAbsoluteURL(serverURL, 
req.getContextPath(), path), "UTF-8"));
               }
  
  
  

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

Reply via email to