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

Some REST request failing with status 500 don't send any response anymore

    Details

    • Story Points:
      2
    • Sprint:
      OpenIDM Sprint 51

      Description

      I saw the problem at least in 2 places

      1) Not supported filter for queryFilter are now failing without error message with CREST 3. This is a regression compared to CREST 2.x

      With OpenIDM from beginning of August (CREST 2.x)

      curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/managed/user?_queryFilter=givenName+aa+%22filter%22" | jq .
      {
        "message": "Extended match filter not supported on this endpoint",
        "reason": "Internal Server Error",
        "code": 500
      }
      

      With last OpenIDM (Jenkins job 335) using CREST 3

      curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/managed/user?_queryFilter=givenName+aa+%22filter%22" | jq .
      

      => here we get status 500, but empty response ==> not nice (regression)

      2) Updating a managed user with patch to add an element to an array to a non existing index

      With OpenIDM from beginning of August (CREST 2.x)

      curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '[{"operation":"add","field":"/fax/42","value":"3333"}]' --request PATCH "http://localhost:8080/openidm/managed/user/ricksutter" | jq .
      {
        "message": "out of range",
        "reason": "Internal Server Error",
        "code": 500
      }
      

      With last OpenIDM (Jenkins job 335) using CREST 3

      curl --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '[{"operation":"add","field":"/fax/42","value":"3333"}]' --request PATCH "http://localhost:8080/openidm/managed/user/ricksutter" | jq .
      

      => here we get status 500, but empty response ==> not nice (regression)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alin Alin Brici
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: