[OPENAM-15483] IDPSSOUtil.doSSOFederate throws NumberFormatException when subrealm is used with federation Created: 25/Sep/19  Updated: 22/Apr/20  Due: 27/Sep/19  Resolved: 04/Oct/19

Status: Resolved
Project: OpenAM
Component/s: None
Affects Version/s: 6.5.0, 6.0.0.6, 6.5.0.1, 6.5.2, 6.5.2.1, 6.5.2.2, 6.5.2.3
Fix Version/s: 5.5.2, 7.0.0, 6.5.3

Type: Bug Priority: Major
Reporter: Sam Fraser Assignee: Sam Fraser
Resolution: Fixed Votes: 0
Labels: EDISON
Remaining Estimate: 0h
Time Spent: 1h
Original Estimate: 1h

Issue Links:
Duplicate
is duplicated by OPENAM-15368 SAML2 federation fails when doing Ses... Resolved
Relates
is related to OPENAM-14929 idpSSOInit error when session authLev... Resolved
is related to OPENAM-15368 SAML2 federation fails when doing Ses... Resolved
Target Version/s:
Sprint: AM Sustaining Sprint 67, AM Sustaining Sprint 68
Story Points: 1
Needs backport:
Yes
Support Ticket IDs:
Needs QA verification:
No
Functional tests:
No
Are the reproduction steps defined?:
Yes and I used the same an in the description

 Description   

Bug description

IDPSSOUtil.doSSOFederate throws NumberFormatException when subrealm is used with federation

How to reproduce the issue

Details steps outlining how to recreate the issue (remove this text)

  1. Setup Federation using subrealm
  2. Federate
Expected behaviour
No Errors
Current behaviour
DefaultIDPAuthnContextMapper.getIDPAuthnContextInfo:returned AuthnContextClassRef=urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransportauthTypeAndValues=[service=MFA]authnLevel=5libSAML2:09/25/2019
 06:54:41:124 AM UTC: Thread[http-nio-8443-exec-103,5,main]: 
TransactionId[6aa17d71-03a6-4739-8e16-dd152a029a4a-27302]IDPSSOUtil.doSSOFederate: idpDefaultContextAuthLevel = 5libSAML2:09/25/2019
 06:54:41:124 AM UTC: Thread[http-nio-8443-exec-103,5,main]: 
TransactionId[6aa17d71-03a6-4739-8e16-dd152a029a4a-27302]IDPSSOUtil.getAuthLevel: session authLevel = /subrealm:5libSAML2:09/25/2019
 06:54:41:124 AM UTC: Thread[http-nio-8443-exec-103,5,main]: 
TransactionId[6aa17d71-03a6-4739-8e16-dd152a029a4a-27302]ERROR: Error processing requestjava.lang.NumberFormatException: For input string: "/subrealm:5"    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)    at java.lang.Integer.parseInt(Integer.java:569)    at java.lang.Integer.parseInt(Integer.java:615)    at com.sun.identity.saml2.profile.IDPSSOUtil.doSSOFederate(IDPSSOUtil.java:314)    at com.sun.identity.saml2.profile.IDPSSOUtil.doSSOFederate(IDPSSOUtil.java:199)

Work around

none

 

Generated at Mon Nov 30 01:44:49 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.