DO NOT REPLY [Bug 40084] New: - WebdavResource.mkcolMethod() does not propagate "followRedirects".

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]/bugzilla/>
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: [email protected]
        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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.