Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15483

IDPSSOUtil.doSSOFederate throws NumberFormatException when subrealm is used with federation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0.6, 6.5.0, 6.5.0.1, 6.5.2, 6.5.2.1, 6.5.2.2, 6.5.2.3
    • Fix Version/s: 6.5.3, 7.0.0, 5.5.2
    • Component/s: None
    • Labels:
    • 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

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sfraser Sam Fraser
                Reporter:
                sfraser Sam Fraser
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h