Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-1360

SCIM connector throws NPE if OAUTH grantType not configured.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: scim-connector-1.5.6.0, scim-connector-1.5.7.0
    • Fix Version/s: scim-connector-1.5.8.0
    • Component/s: SCIM Connector
    • Labels:
      None

      Description

      The SCIM connector will throw a NPE when the OAUTH grantType isn't configured.

      Verify the value isn't null before this line in ScimConfiguration.java:

      switch (OAuthGrantType.valueOf(this.grantType.toLowerCase())) { 

       

      This is the produced NPE:

      java.lang.NullPointerException
      	at org.forgerock.openicf.connectors.scim.ScimConfiguration.validate(ScimConfiguration.java:498)
      	at org.identityconnectors.framework.impl.api.local.operations.ValidateImpl.validate(ValidateImpl.java:39) 

        Attachments

          Activity

            People

            Assignee:
            gael Gael Allioux
            Reporter:
            jason.vincent jason vincent
            QA Assignee:
            Son Nguyen Son Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: