[seam-commits] Seam SVN: r8332 - in branches/Seam_2_0: src/main/org/jboss/seam/security and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Jun 6 03:42:35 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-06-06 03:42:35 -0400 (Fri, 06 Jun 2008)
New Revision: 8332

Modified:
   branches/Seam_2_0/build/root.pom.xml
   branches/Seam_2_0/src/main/org/jboss/seam/security/RuleBasedIdentity.java
Log:
JBSEAM-3064

Modified: branches/Seam_2_0/build/root.pom.xml
===================================================================
--- branches/Seam_2_0/build/root.pom.xml	2008-06-05 19:03:20 UTC (rev 8331)
+++ branches/Seam_2_0/build/root.pom.xml	2008-06-06 07:42:35 UTC (rev 8332)
@@ -39,7 +39,7 @@
   <!-- Externalize some version numbers here -->
   <properties>
     <version.richfaces>3.1.4.GA</version.richfaces>
-    <version.drools>4.0.6</version.drools>
+    <version.drools>4.0.7</version.drools>
   </properties>
 
   <dependencyManagement>

Modified: branches/Seam_2_0/src/main/org/jboss/seam/security/RuleBasedIdentity.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/security/RuleBasedIdentity.java	2008-06-05 19:03:20 UTC (rev 8331)
+++ branches/Seam_2_0/src/main/org/jboss/seam/security/RuleBasedIdentity.java	2008-06-06 07:42:35 UTC (rev 8332)
@@ -164,12 +164,15 @@
    {      
       if (securityContext != null)
       {
-         Iterator<Role> iter = securityContext.iterateObjects(new ClassObjectFilter(Role.class));
-         
-         while (iter.hasNext())
+         synchronized(securityContext)
          {
-            Role r = iter.next();
-            if (r.getName().equals(role)) return true;
+            Iterator<Role> iter = securityContext.iterateObjects(new ClassObjectFilter(Role.class));
+            
+            while (iter.hasNext())
+            {
+               Role r = iter.next();
+               if (r.getName().equals(role)) return true;
+            }
          }
       }
       




More information about the seam-commits mailing list