[jboss-cvs] JBossAS SVN: r112441 - branches/JBPAPP_5_0_1_GA_JBPAPP-7475/server/src/main/org/jboss/proxy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 7 17:22:36 EST 2011


Author: dehort
Date: 2011-11-07 17:22:36 -0500 (Mon, 07 Nov 2011)
New Revision: 112441

Modified:
   branches/JBPAPP_5_0_1_GA_JBPAPP-7475/server/src/main/org/jboss/proxy/SecurityActions.java
Log:
Fixing a bug where twiddle does not pass the username/password correctly when running under the Java security manager.
[JBPAPP-7475]


Modified: branches/JBPAPP_5_0_1_GA_JBPAPP-7475/server/src/main/org/jboss/proxy/SecurityActions.java
===================================================================
--- branches/JBPAPP_5_0_1_GA_JBPAPP-7475/server/src/main/org/jboss/proxy/SecurityActions.java	2011-11-07 21:48:26 UTC (rev 112440)
+++ branches/JBPAPP_5_0_1_GA_JBPAPP-7475/server/src/main/org/jboss/proxy/SecurityActions.java	2011-11-07 22:22:36 UTC (rev 112441)
@@ -89,6 +89,8 @@
             { 
                p = sc.getUtil().getUserPrincipal();
             }
+            if(p == null && SecurityContextAssociation.isClient())
+              p = SecurityAssociation.getPrincipal();
             return p; 
          }
       };
@@ -103,6 +105,8 @@
             { 
                cred = sc.getUtil().getCredential();
             }
+            if(cred == null && SecurityContextAssociation.isClient())
+              cred = SecurityAssociation.getCredential();
             return cred; 
          }
       }; 



More information about the jboss-cvs-commits mailing list