jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1531964 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java
Date Mon, 14 Oct 2013 16:16:08 GMT
Author: angela
Date: Mon Oct 14 16:16:07 2013
New Revision: 1531964

URL: http://svn.apache.org/r1531964
Log:
OAK-1095 : versionable path property has wrong type

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java?rev=1531964&r1=1531963&r2=1531964&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionablePathHook.java
Mon Oct 14 16:16:07 2013
@@ -102,7 +102,7 @@ public class VersionablePathHook impleme
                 }
 
                 String versionablePath = nodeAfter.path;
-                vhBuilder.setProperty(workspaceName, versionablePath);
+                vhBuilder.setProperty(workspaceName, versionablePath, Type.PATH);
             }
             return true;
         }

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java?rev=1531964&r1=1531963&r2=1531964&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/VersionManagementTest.java
Mon Oct 14 16:16:07 2013
@@ -350,4 +350,12 @@ public class VersionManagementTest exten
         history = vMgr.getVersionHistory(testNode.getPath());
         history.addVersionLabel(v.getName(), "testLabel", true);
     }
+
+    public void testVersionablePath() throws Exception {
+        Node n = createVersionableNode(superuser.getNode(path));
+
+        VersionHistory vh = n.getVersionHistory();
+        Property versionablePath = vh.getProperty(superuser.getWorkspace().getName());
+        assertEquals(n.getPath(), versionablePath.getString());
+    }
 }
\ No newline at end of file



Mime
View raw message