jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1146116 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
Date Wed, 13 Jul 2011 16:23:09 GMT
Author: mduerig
Date: Wed Jul 13 16:23:08 2011
New Revision: 1146116

URL: http://svn.apache.org/viewvc?rev=1146116&view=rev
Log:
JCR-3021: AbstractRepositoryService.createSessionInfo should handle null credentials

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java?rev=1146116&r1=1146115&r2=1146116&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
Wed Jul 13 16:23:08 2011
@@ -277,7 +277,7 @@ public abstract class AbstractRepository
         if (credentials instanceof SimpleCredentials) {
             userId = ((SimpleCredentials) credentials).getUserID();
         }
-        else if (credentials instanceof GuestCredentials) {
+        else if (credentials instanceof GuestCredentials || credentials == null) {
             userId = "anonymous";
         }
 



Mime
View raw message