jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r522858 - /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java
Date Tue, 27 Mar 2007 10:23:53 GMT
Author: tripod
Date: Tue Mar 27 03:23:46 2007
New Revision: 522858

URL: http://svn.apache.org/viewvc?view=rev&rev=522858
Log:
Use different login method if credentials are NULL

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java?view=diff&rev=522858&r1=522857&r2=522858
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/SessionProviderImpl.java
Tue Mar 27 03:23:46 2007
@@ -49,7 +49,11 @@
                               String workspace)
         throws LoginException, RepositoryException, ServletException {
         Credentials creds = cp.getCredentials(request);
-        return repository.login(creds, workspace);
+        if (creds == null) {
+            return repository.login(workspace);
+        } else {
+            return repository.login(creds, workspace);
+        }
     }
 
     /**



Mime
View raw message