Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-5718

REST: Deleting non existent resource type makes 400 insted of 404

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.0.0
    • Component/s: entitlements, policy, rest
    • Labels:
    • Environment:
      OpenAM 13.0.0-SNAPSHOT Build 13116 (2015-March-24 02:46)
    • Target Version/s:
    • Rank:
      1|hzlo4v:
    • Sprint:
      Sprint 85 - Team Curie

      Description

      Deleting non existent resource type makes 400 insted of 404 via REST

      STEP TO REPRODUCE:
      Delete a non-existent resource type

      curl --request DELETE --header "iPlanetDirectoryPro: <ADMIN TOKEN>" --header "Content-Type: application/json" "http://openam.example.com:8080/openam/json/resourcetypes/11111111-2222-3333-4444-555555555555"
      

      Observed result:

      {
          "code": 400,
          "reason": "Bad Request",
          "message": "Resource Type 11111111-2222-3333-4444-555555555555 does not exist in realm /"
      }
      

      Expected Result:

      {
          "code": 404,
          "reason": "Not Found",
          "message": "Resource Type 11111111-2222-3333-4444-555555555555 does not exist in realm /"
      }
      

        Attachments

          Activity

            People

            • Assignee:
              jaco.jooste Jaco Jooste
              Reporter:
              richard.hruza Richard Hruza
              QA Assignee:
              Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: