tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26906] New: - Unable to do operations like Rename/Move, Copy, Paste etc.
Date Fri, 13 Feb 2004 08:41:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26906>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26906

Unable to do operations like Rename/Move, Copy, Paste etc.

           Summary: Unable to do operations like Rename/Move, Copy, Paste
                    etc.
           Product: Tomcat 5
           Version: 5.0.18
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlets:WebDAV
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rsudharsan@hotmail.com


Could not do common operations like Rename/Move, Copy, Paste from Windows 2000 /
NT with IE 6.0.2600
Tried to do similar operations from DAVExplorer-0.90 and failed.
When probing further, I found some problem with identifying the destination
location for the operations.
Applied the attached patch to the src code (from the src tar not the CVS) and it
now works on both tools.

<PATCH>
--- WebdavServlet.java.orig	Thu Jan 15 22:59:32 2004
+++ WebdavServlet.java	Fri Feb 13 11:10:41 2004
@@ -1506,8 +1506,15 @@
 
         destinationPath = 
             normalize(RequestUtil.URLDecode(destinationPath, "UTF8"));
-
-        int protocolIndex = destinationPath.indexOf("://");
+        int protocolIndex = destinationPath.indexOf(":/");
+        if( protocolIndex >= 0 ) {
+            if( destinationPath.charAt(protocolIndex+2) != '/' ) {
+                // add a / to make it look good
+                destinationPath = destinationPath.substring(0,
protocolIndex)+"://"+
+                destinationPath.substring(protocolIndex+2);
+            }
+        }
+        protocolIndex = destinationPath.indexOf("://");
         if (protocolIndex >= 0) {
             // if the Destination URL contains the protocol, we can safely
             // trim everything upto the first "/" character after "://"
</PATCH>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message