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

Update an non existent application should return better described message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 12.0.0
    • Fix Version/s: None
    • Component/s: entitlements, policy, rest
    • Environment:
      OpenAM 12.0.0-SNAPSHOT Build 11411 (2014-November-14 02:36)
    • Rank:
      1|hzov8v:

      Description

      Update an non existent application should return better described message

      STEPS TO REPRODUCE:
      1.) Update non existent application

      curl --request PUT --header "iPlanetDirectoryPro: <ADMIN TOKEN>" --header "Content-Type: application/json" --data '{ "attributeNames": [ ], "resources": [ "http://www.example.com:80/*", "http://www.example.com:80/*?*" ], "entitlementCombiner": "DenyOverride", "subjects": [ "JwtClaim", "AuthenticatedUsers", "Identity", "AND", "OR", "NOT" ], "realm": "/", "description": "Test Application", "applicationType": "crestPolicyService", "actions": { "READ": true, "ACTION": false } }' "http://centos6-64.example.com:8080/openam/json/applications/testPolApp/?_prettyPrint=true"
      

      Observed result:

      {
          "code": 404,
          "reason": "Not Found",
          "message": "Not Found"
      }
      

      Expected result:

      {
          "code": 404,
          "reason": "Not Found",
          "message": "Application <APPLICATION NAME> does not exist."
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              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: