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

Unable to update policies in subrealm

    Details

    • Sprint:
      Sustaining Sprint 10
    • Support Ticket IDs:

      Description

      Steps to reproduce:

      • create a subrealm
      • create a custom app (probably not necessary)
      • create a policy in the application
      • try to modify the policy after it has been created

      In the debug logs something similar may be seen:

      amPolicy:07/30/2015 04:44:23:157 PM EDT: Thread[http-nio-8080-exec-26,5,main]
      ERROR: PolicyResource :: UPDATE : Error updating policy, videov4.
      com.sun.identity.entitlement.EntitlementException: videov4_app application not found in realm.
      at com.sun.identity.entitlement.Entitlement.validateResourceNames(Entitlement.java:818)
      at com.sun.identity.entitlement.Privilege.validateResourceNames(Privilege.java:164)
      at com.sun.identity.entitlement.opensso.PolicyPrivilegeManager.modify(PolicyPrivilegeManager.java:265)
      at org.forgerock.openam.forgerockrest.entitlements.PrivilegePolicyStore.update(PrivilegePolicyStore.java:72)
      at org.forgerock.openam.forgerockrest.entitlements.PolicyResource.updateInstance(PolicyResource.java:268)
      at org.forgerock.json.resource.Resources$CollectionInstance.handleUpdate(Resources.java:324)
      at org.forgerock.json.resource.Router.handleUpdate(Router.java:292)
      at org.forgerock.json.resource.FilterChain$Cursor.handleUpdate(FilterChain.java:117)
      

      Looks like this error occurs, because the policy editor tries to update the policy in the top level realm.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                sachiko Sachiko Wallace
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h