[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-dev
Subject:    cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method PropFindMethod.java
From:       cmlenz () apache ! org
Date:       2002-07-31 19:25:56
[Download RAW message or body]

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:slide-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-dev-help@jakarta.apache.org>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic