jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r786144 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java
Date Thu, 18 Jun 2009 16:18:58 GMT
Author: angela
Date: Thu Jun 18 16:18:57 2009
New Revision: 786144

URL: http://svn.apache.org/viewvc?rev=786144&view=rev
Log:
JCR-2116:  JSR 283: Built-In Node Types

fix testcase in jackrabbit-core that relied on jsr 170 node type definition


Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java?rev=786144&r1=786143&r2=786144&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/AbstractNodeTypeManagementTest.java
Thu Jun 18 16:18:57 2009
@@ -115,22 +115,7 @@
                 getTestSession().refresh(false); // TODO: see JCR-1916
             }
 
-            /* for nt:folder set_property permission is required in addition
-               in order to be able to create jcr:created
-               TODO: check again with jsr 283 jcr:created was redesigned
-             */
             modifyPrivileges(childNode.getPath(), Privilege.JCR_NODE_TYPE_MANAGEMENT, true);
-            try {
-                childNode.setPrimaryType(ntName);
-                childNode.save();
-                fail("TestSession does not have sufficient privileges to change the primary
type.");
-            } catch (AccessDeniedException e) {
-                // success
-                getTestSession().refresh(false); // TODO: see JCR-1916
-            }
-
-            // with complete write permission the call must succeed.
-            modifyPrivileges(childNode.getPath(), Privilege.JCR_MODIFY_PROPERTIES, true);
             childNode.setPrimaryType(ntName);
             childNode.save();
 



Mime
View raw message