activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1086619 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala
Date Tue, 29 Mar 2011 15:05:38 GMT
Author: chirino
Date: Tue Mar 29 15:05:38 2011
New Revision: 1086619

URL: http://svn.apache.org/viewvc?rev=1086619&view=rev
Log:
Better error handling for when the user id is not provided.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala?rev=1086619&r1=1086618&r2=1086619&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/FileUserLoginModule.scala
Tue Mar 29 15:05:38 2011
@@ -105,6 +105,9 @@ class FileUserLoginModule extends LoginM
     }
 
     val user = callbacks(0).asInstanceOf[NameCallback].getName()
+    if( user == null ) {
+      throw new FailedLoginException("User id not provided")
+    }
     var tmpPassword = callbacks(1).asInstanceOf[PasswordCallback].getPassword()
     if (tmpPassword == null) {
       tmpPassword = new Array[Char](0)



Mime
View raw message