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

When using the /ws/1/entitlement/privilege endpoint to read a policy, if there are multiple rules one of the rules is appended to the policy name.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 11.0.0, 11.0.1, 11.0.2, 11.0.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Rank:
      1|hzqbtb:
    • Support Ticket IDs:

      Description

      When a policy is created with multiple rules, one of the rules will be appened to the Policy Name when accessing the /ws/1/entitlement/privilege endpoint.
      To recreate:
      1. Create a policy I used testPolicy.
      2. Add two rules to the policy I used testRule1 and testRule2.
      3. Read the policy through the REST endpoint /openam/ws/1/entitlement/privilege/testPolicy.

      The following is returned with testRule2 appended to the policy name:

      {"statusCode":200,"body":{"results": {"name":"testPolicy_testRule2","eSubject":{"state":"

      {\n \"className\": \"com.sun.identity.policy.plugins.AuthenticatedUsers\",\n \"exclusive\": false,\n \"name\": \"testSubjects\",\n \"values\": []\n}

      ","className":"com.sun.identity.entitlement.opensso.PolicySubject"},"entitlement":{"actionsValues":

      {"POST":true,"GET":true}

      ,"applicationName":"iPlanetAMWebAgentService","name":"testRule2","resourceNames":["http://host3.example.com:80"]}}},"statusMessage":"OK"}

        Attachments

          Activity

            People

            Assignee:
            peter.major Peter Major [X] (Inactive)
            Reporter:
            abel.hoxeng Abel Hoxeng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: