jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1148415 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
Date Tue, 19 Jul 2011 15:54:02 GMT
Author: mduerig
Date: Tue Jul 19 15:54:01 2011
New Revision: 1148415

URL: http://svn.apache.org/viewvc?rev=1148415&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=1148415&r1=1148414&r2=1148415&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
Tue Jul 19 15:54:01 2011
@@ -277,7 +277,7 @@ public abstract class AbstractRepository
         if (credentials instanceof SimpleCredentials) {
             userId = ((SimpleCredentials) credentials).getUserID();
         }
-        else if (credentials instanceof GuestCredentials || credentials == null) {
+        else if (credentials instanceof GuestCredentials) {
             userId = "anonymous";
         }
 



Mime
View raw message