ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1151819 - /incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Date Thu, 28 Jul 2011 12:36:29 GMT
Author: marrs
Date: Thu Jul 28 12:36:28 2011
New Revision: 1151819

URL: http://svn.apache.org/viewvc?rev=1151819&view=rev
Log:
ACE-158 patch to work around a problem in Pax UserAdmin (and in itself a different but valid
way of checking the password).

Modified:
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java?rev=1151819&r1=1151818&r2=1151819&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Thu Jul 28 12:36:28 2011
@@ -489,9 +489,7 @@ public class VaadinClient extends com.va
             if (user == null) {
                 return false;
             }
-            Dictionary credentials = user.getCredentials();
-            String userPassword = (String) credentials.get("password");
-            if (!password.equals(userPassword)) {
+            if (!user.hasCredential("password", password)) {
                 return false;
             }
             RepositoryAdminLoginContext context = m_admin.createLoginContext(user);



Mime
View raw message