jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r387472 - /jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
Date Tue, 21 Mar 2006 09:38:07 GMT
Author: angela
Date: Tue Mar 21 01:38:05 2006
New Revision: 387472

URL: http://svn.apache.org/viewcvs?rev=387472&view=rev
Log:
JCR-365: Web client/WebDAV fails to unescape workspace names

Modified:
    jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java

Modified: jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
URL: http://svn.apache.org/viewcvs/jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java?rev=387472&r1=387471&r2=387472&view=diff
==============================================================================
--- jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
(original)
+++ jackrabbit/trunk/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DavLocatorFactoryImpl.java
Tue Mar 21 01:38:05 2006
@@ -95,12 +95,12 @@
             if (pos == -1) {
                 // request to a 'workspace' resource that in the same time
                 // represent the root node of the repository.
-                workspacePath = href;
+                workspacePath = Text.unescape(href);
                 resourcePath = ItemResourceConstants.ROOT_ITEM_PATH;
             } else {
                 // separate the workspace name from the path of the repository
                 // item.
-                workspacePath = href.substring(0, pos);
+                workspacePath = Text.unescape(href.substring(0, pos));
                 resourcePath = Text.unescape(href.substring(pos));
             }
         }
@@ -163,7 +163,7 @@
 
             StringBuffer buf = new StringBuffer(prefix);
             if (workspacePath != null) {
-                buf.append(workspacePath);
+                buf.append(Text.escapePath(workspacePath));
             }
             if (resourcePath != null) {
                 buf.append(Text.escapePath(resourcePath));



Mime
View raw message