geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r947890 - /geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java
Date Tue, 25 May 2010 01:40:58 GMT
Author: delos
Date: Tue May 25 01:40:57 2010
New Revision: 947890

URL: http://svn.apache.org/viewvc?rev=947890&view=rev
Log:
GERONIMO-5011 For run as role, getSubjectForRole() should be returned instead of throw an
exception

Modified:
    geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java

Modified: geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java?rev=947890&r1=947889&r2=947890&view=diff
==============================================================================
--- geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java
(original)
+++ geronimo/server/branches/2.2/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/jacc/mappingprovider/ApplicationPrincipalRoleConfigurationManager.java
Tue May 25 01:40:57 2010
@@ -106,7 +106,7 @@ public class ApplicationPrincipalRoleCon
     public Subject getSubjectForRole(String role) {
         if (role == null) return null;
         Subject runAs = roleDesignates.get(role);
-        if (runAs == null) throw new IllegalStateException("no run-as identity configured
for role: " + role);
+        if (runAs == null) return defaultSubject;
         return runAs;
     }
 



Mime
View raw message