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

Sync on unsupported object class with remote java connector returns 500 instead of 400

    Details

    • Sprint:
      OpenIDM Sprint 83
    • Story Points:
      0.5

      Description

      This is a follow up of https://bugster.forgerock.org/jira/browse/OPENIDM-1967

      sync on unsupported object class returns 500 instead of 400 when using remote java connector:

      curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request POST "http://localhost:8080/openidm/system/groovy/undefined/?_action=liveSync&detailedFailure=True"
      {"code":500,"reason":"Internal Server Error","message":"Failed to get OperationOptionsBuilder: GET_LATEST_SYNC_TOKEN operation of type:__UNDEFINED__ is not supported."}
      

      whereas with local java connector I get:

      curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request POST "http://localhost:8080/openidm/system/groovy/undefined/?_action=liveSync&detailedFailure=True"
      {"code":404,"reason":"Not Found","message":"Failed to get latest sync token","detail":"GET_LATEST_SYNC_TOKEN operation of type:__UNDEFINED__ is not supported."}
      

      Notes:

      • stack trace attached
      • we are using groovy connector for that test

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krismy.alfaro Krismy Alfaro
                Reporter:
                laurent.bristiel Laurent Bristiel
                QA Assignee:
                Vojtěch Oczka
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: