Bug 1352418

Summary: [GSS](6.4.z) The fix for BZ1243553 breaks PolicyContext("javax.security.auth.subject.container") in CXF web service with STS
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Hisanobu Okuda <hokuda>
Component: SecurityAssignee: jboss-set
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Slavicek <pslavice>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.8CC: anmiller, bdawidow, bmaxwell, darran.lofthouse, dosoudil, fgavrilo, hokuda, jondruse, pskopek
Target Milestone: CR1   
Target Release: EAP 6.4.20   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:44:09 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:
Bug Depends On:    
Bug Blocks: 1510090    
Attachments:
Description Flags
SimpleSecurityManager.java.diff
none
security domain settings
none
JAX-WS settings
none
STS Provider
none
Service provider
none
WS Client
none
Exception thrown during test
none
Output if all is good none

Description Hisanobu Okuda 2016-07-04 06:38:27 UTC
Description of problem:
Since EAP6.4.4, PolicyContext("javax.security.auth.subject.container") in CXF web service with STS returns null.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Hisanobu Okuda 2017-05-16 02:55:14 UTC
Created attachment 1279195 [details]
SimpleSecurityManager.java.diff

Comment 6 Petr Jurak 2017-06-09 12:32:10 UTC
Created attachment 1286401 [details]
security domain settings

Comment 7 Petr Jurak 2017-06-09 12:32:48 UTC
Created attachment 1286402 [details]
JAX-WS settings

Comment 8 Petr Jurak 2017-06-09 12:34:43 UTC
Created attachment 1286403 [details]
STS Provider

Comment 9 Petr Jurak 2017-06-09 12:35:36 UTC
Created attachment 1286404 [details]
Service provider

Comment 10 Petr Jurak 2017-06-09 12:36:24 UTC
Created attachment 1286406 [details]
WS Client

Comment 11 Petr Jurak 2017-06-09 12:44:27 UTC
Created attachment 1286407 [details]
Exception thrown during test

Comment 12 Petr Jurak 2017-06-09 12:45:19 UTC
Created attachment 1286408 [details]
Output if all is good

Comment 13 Petr Jurak 2017-06-09 12:50:11 UTC
How to reproduce:
1. Start EAP 6.4
2. Run jboss-cli.sh --file=add-security-domain.cli
3. Run jboss-cli.sh --file=add-jaxws-endpoint.cli
4. Restart server
5. Deploy STS Provider application
6. Deploy Service Provider application
7. Run WS client and observe server log.

Actual results:
 exception is thrown (see attached exception.txt)

Expected results:
 no exception should be thrown, method should be invoked and PolicyContext.getContext("javax.security.auth.Subject.container") should not be null
 see attached log output
 note: this result I got with applied fix

Comment 29 Jiří Bílek 2018-04-27 11:59:54 UTC
Regression tests passed
Verified with EAP 6.4.20.CP.CR1