Bug 973590

Summary: NPE when rollesAllowed not configured
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: SwitchYardAssignee: David Ward <dward>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Pechanec <jpechane>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: dward, kbabo, soa-p-jira
Target Milestone: ER1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 15:25:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Pechanec 2013-06-12 09:28:02 UTC
Conditions
 - an authorization is required for a service
 - rolesAllowed is not configured in security setting

Result
 - A NPE is thrown at JaasSecurityProvider.checkRolesAllowed when calling rolesAllowed.isEmpty()

Comment 1 David Ward 2013-06-24 16:26:24 UTC
This is no longer a bug.  It was reported on 2013-06-12.

As part of the "SWITCHYARD-1414: Add ability to reference named security sections" jira, a change was made such that this NPE is no longer possible: http://goo.gl/zWaEx .  You can see that the _rolesAllowed Set is now pre-initialized, and added to in the set at config time (which is why it doesn't have to be synchronized): http://goo.gl/uVTOc .

Comment 2 Jiri Pechanec 2013-09-18 05:30:38 UTC
Verified in ER2

Comment 6 JBoss JIRA Server 2014-06-16 23:47:57 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1414 to Closed