Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5275

org.jboss.test.security.test.XMLLoginModulesUnitTestCase failing on Z-servers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-4.2.2.GA, JBossAS-5.0.0.Beta4
    • Component/s: Test Suite
    • Labels:
      None
    • Environment:

      Description

      Getting this:
      testXmlLoginModuleParsing Failure roles in (Role2, Role3)

      junit.framework.AssertionFailedError: roles in (Role2, Role3)
      at org.jboss.test.security.test.XMLLoginModulesUnitTestCase.testXmlLoginModuleParsing(XMLLoginModulesUnitTestCase.java:210)
      I found out that for some reason when the testsuite is run on Z-systems with IBM 1.5 JDK, the roles from the XML file load in backwards order. That's the only problem here. This is the piece of the XML:

      <lm:user name="jdukeman" password="anotherduke">
      <lm:role name="Role2"/>
      <lm:role name="Role3"/>
      <lm:role name="callerJdukeman" group="CallerPrincipal" />
      </lm:user>

      So the problem is that Role3 is loaded as first and Role2 as second which is causing the failure.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mmalina Martin Malina
                  Reporter:
                  mmalina Martin Malina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: