jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1461137 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java
Date Tue, 26 Mar 2013 14:03:23 GMT
Author: reschke
Date: Tue Mar 26 14:03:23 2013
New Revision: 1461137

URL: http://svn.apache.org/r1461137
Log:
JCR-3540: fix href generation of RootCollection

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java?rev=1461137&r1=1461136&r2=1461137&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/AbstractLocatorFactory.java
Tue Mar 26 14:03:23 2013
@@ -231,10 +231,10 @@ public abstract class AbstractLocatorFac
                 buf.append(EncodeUtil.escapePath(resourcePath));
             }
             int length = buf.length();
-            if (length > 0 && buf.charAt(length - 1) != '/') {
+            if (length == 0 || (length > 0 && buf.charAt(length - 1) != '/'))
{
                 buf.append("/");
             }
-            href = buf.toString();
+            this.href = buf.toString();
         }
 
         /**



Mime
View raw message