Author: nfilotto
Date: 2010-06-24 15:19:31 -0400 (Thu, 24 Jun 2010)
New Revision: 2701
Modified:
core/trunk/exo.core.component.document/src/test/resources/test.policy
Log:
EXOJCR-764: To definitively fix the issue I had to check the permission in
SessionFactory.createSession
What has been done:
1. Re-add the security test for the profile run-all
2. Move the permission check from RepositoryImpl.getSystemSession(..) to
SessionFactory.createSession
3. The related unit test added
4. Fix the other tests
5. Renamed the permission "getJCRSystemSession" to
"createSystemSession"
Modified: core/trunk/exo.core.component.document/src/test/resources/test.policy
===================================================================
--- core/trunk/exo.core.component.document/src/test/resources/test.policy 2010-06-24
15:19:13 UTC (rev 2700)
+++ core/trunk/exo.core.component.document/src/test/resources/test.policy 2010-06-24
19:19:31 UTC (rev 2701)
@@ -7,6 +7,6 @@
};
grant codeBase "@TEST_CLASSES@-"{
- permission java.lang.RuntimePermission "getJCRSystemSession";
+ permission java.lang.RuntimePermission "createSystemSession";
permission java.lang.RuntimePermission "manageRepository";
};