jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1148418 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Tue, 19 Jul 2011 15:59:20 GMT
Author: mduerig
Date: Tue Jul 19 15:59:20 2011
New Revision: 1148418

URL: http://svn.apache.org/viewvc?rev=1148418&view=rev
Log:
spi2microkernel (WIP)
- map null credentials to GuestCredentials

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1148418&r1=1148417&r2=1148418&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Tue Jul 19 15:59:20 2011
@@ -56,6 +56,7 @@ import org.json.simple.parser.JSONParser
 import org.json.simple.parser.ParseException;
 
 import javax.jcr.Credentials;
+import javax.jcr.GuestCredentials;
 import javax.jcr.NoSuchWorkspaceException;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
@@ -139,6 +140,9 @@ public class RepositoryServiceImpl exten
 
     @Override
     protected SessionInfo createSessionInfo(Credentials credentials, String workspaceName)
throws RepositoryException {
+        if (credentials == null) {
+            credentials = new GuestCredentials();
+        }
         SessionInfo s = super.createSessionInfo(credentials, workspaceName);
         createSessionState(s);
         return s;



Mime
View raw message