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

List:       slide-dev
Subject:    DO NOT REPLY [Bug 40084]  New:  - WebdavResource.mkcolMethod() does not propagate "followRedirects".
From:       bugzilla () apache ! org
Date:       2006-07-20 15:59:32
Message-ID: bug-40084-4429 () http ! issues ! apache ! org/bugzilla/
[Download RAW message or body]

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: jnorris10@gmail.com


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