Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-11667

If Salesforce is unavailable, testing the Salesforce Connector throws a 500 error

    Details

      Description

      If Salesforce is unavailable and a ?_action=test is executed against either the specific connector or against the general system endpoint, a 500 error is returned in the response rather than nesting the failure within the "error" attribute.

      As an example, if an LDAP server is unavailable, the response is as follows:

      POST http://localhost:8080/openidm/system/?_action=test
      
      [
          {
              "name": "ldap",
              "enabled": true,
              "config": "config/provisioner.openicf/ldap",
              "connectorRef": {
                  "bundleName": "org.forgerock.openicf.connectors.ldap-connector",
                  "connectorName": "org.identityconnectors.ldap.LdapConnector",
                  "bundleVersion": "[1.4.0.0,1.5.0.0)"
              },
              "displayName": "LDAP Connector",
              "objectTypes": [
                  "__ALL__",
                  "account",
                  "group"
              ],
              "error": "javax.naming.CommunicationException: localhost:1389 [Root exception is java.net.ConnectException: Connection refused (Connection refused)]",
              "ok": false
          }
      ]
      

      This behaviour should be improved so that if the connection to Salesforce fails, the reason is captured in the ?_action=test response rather than a basic 500 error.

        Attachments

          Activity

            People

            • Assignee:
              emanuel.brici Emanuel Brici
              Reporter:
              tom.wood Tom Wood
              QA Assignee:
              Michal Orlik
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: