[jboss-jira] [JBoss JIRA] Commented: (JBAS-5023) org.jboss.test.jca.test
Jeff Zhang (JIRA)
jira-events at lists.jboss.org
Thu May 8 03:49:27 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5023?page=comments#action_12412106 ]
Jeff Zhang commented on JBAS-5023:
----------------------------------
Find the reason:
In ConnectionManagerBuilder, runtime haven't set "SecurityDomainJndiName" string, BaseConnectionManager2 can not get the right "Realm", it make testcase failed.
BTW: it is really a bug and hsqldb-ds.xml(and others) can't setup "SecurityDomainJndiName" too.
fix it:
Index: connector/src/main/org/jboss/resource/deployers/builder/ConnectionManagerBuilder.java
===================================================================
--- connector/src/main/org/jboss/resource/deployers/builder/ConnectionManagerBuilder.java (revision 73144)
+++ connector/src/main/org/jboss/resource/deployers/builder/ConnectionManagerBuilder.java (working copy)
@@ -55,6 +55,9 @@
attribute = buildSimpleAttribute("JndiName", md.getJndiName());
attributes.add(attribute);
+
+ attribute = buildSimpleAttribute("SecurityDomainJndiName", md.getSecurityMetaData().getDomain());
+ attributes.add(attribute);
attribute = buildDependencyAttribute("CachedConnectionManager", CCM_JMX);
attributes.add(attribute);
> org.jboss.test.jca.test
> -----------------------
>
> Key: JBAS-5023
> URL: http://jira.jboss.com/jira/browse/JBAS-5023
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: Test Suite
> Reporter: Shelly McGowan
> Assigned To: Jeff Zhang
> Fix For: JBossAS-5.0.0.CR1
>
> Attachments: ds.patch
>
>
> Failing tests:
> org.jboss.test.jca.test.SecurityContextUnitTestCase(tests-security-basic-unit).testRunAsIdentityPropagationFS
> org.jboss.test.jcaprops.test.JBossRaXmlOverrideUnitTestCase.testJBossRaXmlOverride
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list