Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-2075

Possible IndexOutOfBoundsException in ejb-security-interceptors quickstart

    XMLWordPrintable

Details

    Description

      This issue was originally created as Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1286938

      In ejb-security-interceptors quickstart, line #143 in class org.jboss.as.quickstarts.ejb_security_interceptors.DelegationLoginModule may throw IndexOutOfBoundsException when wildcard is used.

      code snippet:
      =====================================
      if (allowedMappings.length == 1 && "*".equals(allowedMappings[1]))

      { <<--- this line #143 // A wild card mapping was found. return true; }

      =====================================

      Version-Release number of selected component (if applicable):

      How reproducible:
      always

      Steps to Reproduce:
      1. Try to use wildcard in "delegation-mapping.properties" file
      2. Run the quickstart

      Actual results:
      IndexOutOfBoundsException when reading "allowedMappings[1]" as its length is 1

      Expected results:
      no exception

      Additional info:
      By default this doesn't throw exception as wildcard is not used in the example configuration.

      Attachments

        Activity

          People

            sgilda_jira Sande Gilda (Inactive)
            sgilda_jira Sande Gilda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: