Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 917846

Summary: OpenSSO/OpenAM Agent doesn't work well when gatein is on Windows and OpenAM is on *NIX based system
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Ray Tsang <rtsang>
Component: PortalAssignee: Default User <jbpapp-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.2, 6.0.0CC: bdawidow, epp-bugs, mposolda, nobody, theute, tkyjovsk
Target Milestone: ---   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
Cause: There was the issue with EPP 5.2.2 and OpenAM integration when both were executed on different servers (For example OpenAM on Windows, EPP on linux). There was the issue on EPP side in OpenSSOAgent component during parsing response with subject informations, because different line.separator character used by OpenAM and by EPP during parsing. Consequence: Response with subject informations wasn't correctly parsed by OpenSSOAgent Fix: Fix is adding algorithm into OpenSSOAgentImpl class to recognize line separator from given OpenAM response. So it's possible to handle deployment with OpenAM on windows and GateIn on linux (or viceversa). Result: Issue shouldn't be reproducible anymore on JPP 6.1
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-07 14:24:58 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 Ray Tsang 2013-03-04 22:14:23 UTC
Please see https://issues.jboss.org/browse/GTNSSO-23


There was a forum thread (see forum reference) where OpenAM response is split by response.split(System.getProperty("line.separator"))
This is good when BOTH Portal and OpenAM are on the same platform. Issue arises when Portal is on Windows and OpenAM is on *NIX system.
OpenAM would return the response w/ '\n' line separator, but Portal on window would try to split it using '\r\n'.

Comment 1 JBoss JIRA Server 2013-04-29 12:58:08 UTC
Marek Posolda <mposolda> updated the status of jira GTNSSO-23 to Resolved

Comment 2 JBoss JIRA Server 2013-04-29 12:58:08 UTC
Marek Posolda <mposolda> made a comment on jira GTNSSO-23

Issue will be fixed in GateIn SSO 1.3.3.Final. Fix is adding algorithm into OpenSSOAgentImpl class to recognize line separator from given OpenAM response.

So it's possible possible to handle deployment with OpenSSO on windows and GateIn on linux (or viceversa).

Comment 3 mposolda 2013-05-10 14:16:34 UTC
Issue is fixed in GateIn SSO 1.3.3.CR03, which is available in GateIn master

Comment 5 Tomas Kyjovsky 2013-07-08 18:25:04 UTC
I tested this issue with JPP-6.1.0.ER2 on Ubuntu13+Windows7 environment.

Scenario 1: OpenAM on Win, Portal on Linux.
Scenario 2: OpenAM on Linux, Portal on Win.

Both scenarios worked fine.