In integrating Slide 1.0.16 into our product suite, it became necessary
to modify two of Slide's classes to be able to override the default
functionality.  Attached are two files to patch Slide 1.0.16 to allow
this.

The first patch changes the WebdavServletConfig constructor to public,
so that our subclass can be used in its place.

The second patch fixes the generation of URLs when retrieving descendent
WebdavResources.

Can I get someone to look them over and commit them to the 1.0 branch?

The paths are:
src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java
src/webdav/server/org/apache/slide/webdav/WebdavServletConfig.java

Thanks
Scott Sanders
Index: WebdavServletConfig.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/server/org/apache/slide/webdav/WebdavServletConfig.java,v
retrieving revision 1.3
diff -u -r1.3 WebdavServletConfig.java
--- WebdavServletConfig.java    20 Aug 2001 12:13:14 -0000      1.3
+++ WebdavServletConfig.java    26 Mar 2003 00:11:13 -0000
@@ -150,7 +150,7 @@
      *
      * @param config ServletConfig
      */
-    WebdavServletConfig(ServletConfig config) {
+    public WebdavServletConfig(ServletConfig config) {
         
         this.config = config;
         
Index: WebdavResource.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java,v
retrieving revision 1.31
diff -u -r1.31 WebdavResource.java
--- WebdavResource.java 27 Oct 2001 15:21:04 -0000      1.31
+++ WebdavResource.java 26 Mar 2003 00:10:14 -0000
@@ -803,7 +803,9 @@
                 displayName = HttpURL.getName(href);
             }
             if (!itself) {
-                workingResource.setHttpURL(httpURL, displayName, NOACTION);
+                HttpURL otherURL = new HttpURL(httpURL, "");
+                otherURL.setPath(href);
+                workingResource.setHttpURL(otherURL, NOACTION, defaultDepth);
                 workingResource.setExistence(true);
                 workingResource.setOverwrite(getOverwrite());
             }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to