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=28399>.
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=28399

WebDAV copyResource function broken for URLs

           Summary: WebDAV copyResource function broken for URLs
           Product: Tomcat 4
           Version: 4.1.30
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlets:WebDAV
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


the WebDAV servlet does not handle copy/move/rename operations correctly.  The
function copyResource calls normalize() too early in the process.  So,
destination urls like "http://www.site.com"; gets translated to
"http:/www.site.com" since normalize removes all double slashes.  This causes
the check for "://" to fail, as  the double slash no longer exists.

The fix would be to move the call to normalize() to after the if/else block so
that the URL processing will succeed.

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

Reply via email to