incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r980777 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
Date Fri, 30 Jul 2010 13:09:20 GMT
Author: fmeschbe
Date: Fri Jul 30 13:09:19 2010
New Revision: 980777

URL: http://svn.apache.org/viewvc?rev=980777&view=rev
Log:
SLING-1618 Another refactoring glitch: Password must be set on credentials if set in the auth
info

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java?rev=980777&r1=980776&r2=980777&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceResolverFactoryImpl.java
Fri Jul 30 13:09:19 2010
@@ -639,8 +639,8 @@ public class JcrResourceResolverFactoryI
             final Object password = authenticationInfo.get("user.password");
             final SimpleCredentials credentials = new SimpleCredentials(
                 (String) userId, ((password instanceof char[])
-                        ? new char[0]
-                        : (char[]) password));
+                        ? (char[]) password
+                        : new char[0]));
 
             // add attributes
             copyAttributes(credentials, authenticationInfo);



Mime
View raw message