activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1295092 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/Authorizer.scala
Date Wed, 29 Feb 2012 13:23:27 GMT
Author: chirino
Date: Wed Feb 29 13:23:27 2012
New Revision: 1295092

URL: http://svn.apache.org/viewvc?rev=1295092&view=rev
Log:
Fixes APLO-168 : The <access_rule> element's principal_kind attribute is broken

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

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/Authorizer.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/Authorizer.scala?rev=1295092&r1=1295091&r2=1295092&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/Authorizer.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/security/Authorizer.scala
Wed Feb 29 13:23:27 2012
@@ -190,7 +190,7 @@ object Authorizer {
         })
     }
 
-    val principal_kinds = Option(rule.principal_kind).map(_.trim().toLowerCase).getOrElse(null)
match {
+    val principal_kinds = Option(rule.principal_kind).map(_.trim()).getOrElse(null) match
{
       case null => Some(default_principal_kinds)
       case "*" => None
       case principal_kind => Some(principal_kind.split("\\s").map(_.trim()).toSet)



Mime
View raw message