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

    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.

      Attachments

        Issue Links

          Activity

            People

              exd-mmalina Martin Malina
              exd-mmalina Martin Malina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: