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

SCIM Connector: Align exceptions for not configured (blank/null) configurationProperties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: scim-connector-1.5.8.0
    • Fix Version/s: 1.5.19.2
    • Component/s: SCIM Connector
    • Labels:
      None
    • Environment:
      OpenIDM: 7.1.0-SNAPSHOT 17d47c7
      SCIMConnector: 1.5.8.0 f843456edb0

      Description

      When the configurationProperties are not set but require a value to be not null/blank, it should throw an exception which is consistent for all those properties, however at this point some properties throws NullPointerException and others IllegalArgumentException

      We expect to see a unified error message of what property is null or blank to keep it consistent.

      Examples of current exceptions:

      java.lang.IllegalArgumentException: SCIMEndpoint cannot be null or empty
      
      java.lang.IllegalArgumentException: Parameter 'user' must not be blank
      
      java.lang.NullPointerException: Parameter 'password' must not be null
      

        Attachments

          Activity

            People

            Assignee:
            gael Gael Allioux
            Reporter:
            son.nguyen Son Nguyen
            QA Assignee:
            Son Nguyen Son Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: