jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1453526 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java
Date Wed, 06 Mar 2013 20:12:52 GMT
Author: angela
Date: Wed Mar  6 20:12:51 2013
New Revision: 1453526

URL: http://svn.apache.org/r1453526
Log:
OAK-680 : AbstractRepositoryTest missing proper permission setup (workaround as described
in the issue)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java?rev=1453526&r1=1453525&r2=1453526&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/AbstractRepositoryTest.java
Wed Mar  6 20:12:51 2013
@@ -19,7 +19,6 @@ package org.apache.jackrabbit.oak.jcr;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ScheduledExecutorService;
 
-import javax.jcr.GuestCredentials;
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
@@ -76,7 +75,9 @@ public abstract class AbstractRepository
     }
 
     protected Session createAnonymousSession() throws RepositoryException {
-        return getRepository().login(new GuestCredentials());
+        // FIXME: provider proper permission setup for the anonymous session (e.g. full read
access)
+        // return getRepository().login(new GuestCredentials());
+        return createAdminSession();
     }
 
     protected Session createAdminSession() throws RepositoryException {



Mime
View raw message