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

Incorrect message, if don't provide policy name in POST creating request via REST

    XMLWordPrintable

    Details

    • Rank:
      1|hzm167:
    • Sprint:
      Sprint 68 - Team Newton, Sprint 69 - Team Tesla

      Description

      STEPS TO REPRODUCE:
      1. Send POST request for create policy via REST without policy name

      curl --request POST --header "iPlanetDirectoryPro: <ADMIN TOKEN>" --header "Content-Type: application/json" --data '{ "resources": ["http://example.com:80/index.html"], "subject": {"type": "AuthenticatedUsers"}, "active": true, "actionValues": {"GET": true, "POST": false} }' "http://perf-openam.internal.forgerock.com:8080/openam/json/policies/?_action=create&_prettyPrint=true"
      

      Observed result:

      {
        "code" : 400,
        "reason" : "Bad Request",
        "message" : "Privilege name cannot be empty."
      }
      

      Expected result (Policy NOT a Privilege):

      {
        "code" : 400,
        "reason" : "Bad Request",
        "message" : "Policy name cannot be empty."
      }
      

        Attachments

          Activity

            People

            Assignee:
            BrianB Brian Bailey [X] (Inactive)
            Reporter:
            richard.hruza Richard Hruza
            QA Assignee:
            Richard Hruza Richard Hruza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: