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

Backport OPENIDM-9211: External REST service does not return error details from remote server

    Details

    • Support Ticket IDs:

      Description

      The move from Restlet to CHF has resulted in a slight change in behaviour of the External REST service. Prior to the use of CHF (IDM 3.x and 4.x), a call to a external service which returned a non-HTTP 200 response would result in the failure details being injected into the response returned by the External REST Service.

      As of 5.0.0 this behavior has changed and it is no longer possible to programatically identify the cause of a failed remote request.

      Use the attached test.js script and the following request to reproduce the issue.

       

      curl -X POST \
       'http://localhost:8080/openidm/script?_action=eval' \
       -H 'cache-control: no-cache' \
       -H 'content-type: application/json' \
       -H 'postman-token: 1be991f1-6ddc-8159-454b-1dd38c8c3f02' \
       -H 'x-openidm-password: openidm-admin' \
       -H 'x-openidm-username: openidm-admin' \
       -d '{
       "type": "text/javascript",
       "file": "script/test.js"
      }'

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                cgdrake Chris Drake
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: