Bug 1286938 - Possible IndexOutOfBoundsException in ejb-security-interceptors quickstart
Possible IndexOutOfBoundsException in ejb-security-interceptors quickstart
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Quickstarts (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: sgilda
Nikoleta Ziakova
Depends On:
  Show dependency treegraph
Reported: 2015-12-01 02:17 EST by Lyle Wang
Modified: 2015-12-02 03:11 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-12-01 06:00:40 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lyle Wang 2015-12-01 02:17:09 EST
Description of problem:

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:

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.
Comment 2 sgilda 2015-12-01 05:56:38 EST
We are no longer making changes to the JBoss EAP 6.4 version of the quickstarts. I will move this issue to JIRA for the JBoss EAP 7 version.
Comment 3 sgilda 2015-12-01 06:00:40 EST
Issue moved to https://issues.jboss.org/browse/JBEAP-2075

Note You need to log in before you can comment on or make changes to this bug.