DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40084>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40084

           Summary: WebdavResource.mkcolMethod() does not propagate
                    "followRedirects".
           Product: Slide
           Version: 2.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebDAV client
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


mkcolMethod returns a 301 (Moved Permanently) if there is no trailing slash
(tested with Apache 2.2.2 mod_dav) on the directory provided.  However,
WebdavResource.mkcolMethod() does not propagate "followRedirects" so that this
301 is handled.

The following simple patch fixes the issue:

-----

Index: clientlib/src/java/org/apache/webdav/lib/WebdavResource.java
===================================================================
--- clientlib/src/java/org/apache/webdav/lib/WebdavResource.java       
(revision 423268)
+++ clientlib/src/java/org/apache/webdav/lib/WebdavResource.java        (working
copy)
@@ -4156,6 +4156,7 @@

         setClient();
         MkcolMethod method = new MkcolMethod(URIUtil.encodePath(path));
+        method.setFollowRedirects(this.followRedirects);

         generateIfHeader(method);
         generateTransactionHeader(method);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to