geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r800708 - /geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Date Tue, 04 Aug 2009 09:10:29 GMT
Author: xuhaihong
Date: Tue Aug  4 09:10:29 2009
New Revision: 800708

URL: http://svn.apache.org/viewvc?rev=800708&view=rev
Log:
GERONIMO-4772  <attribute name="global">false</attribute> in security realm result
in deployment error and no option to set it to true (Patch from viola.lu)

Modified:
    geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java

Modified: geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java?rev=800708&r1=800707&r2=800708&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
(original)
+++ geronimo/server/trunk/plugins/console/plugin-portlets/src/main/java/org/apache/geronimo/console/securitymanager/realm/SecurityRealmPortlet.java
Tue Aug  4 09:10:29 2009
@@ -87,6 +87,7 @@
 import org.apache.geronimo.kernel.repository.Artifact;
 import org.apache.geronimo.kernel.repository.ListableRepository;
 import org.apache.geronimo.management.geronimo.JCAManagedConnectionFactory;
+import org.apache.geronimo.security.jaas.ConfigurationEntryFactory;
 import org.apache.geronimo.security.jaas.JaasLoginModuleChain;
 import org.apache.geronimo.security.jaas.JaasLoginModuleUse;
 import org.apache.geronimo.security.jaas.LoginModuleSettings;
@@ -498,6 +499,7 @@
     private void actionLoadExistingRealm(PortletRequest request, RealmData data) {
         SecurityRealm realm = (SecurityRealm) PortletManager.getManagedBean(request, new
AbstractName(URI.create(data.getAbstractName())));
         data.name = realm.getRealmName();
+        data.global = ((ConfigurationEntryFactory)realm).isGlobal();
         List list = new ArrayList();
         JaasLoginModuleChain node = realm.getLoginModuleChain();
         while (node != null) {



Mime
View raw message