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

Mismatch of output in Policy debug logs, REST Policy create response and REST endpoint Policy query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0
    • Fix Version/s: 13.0.0
    • Component/s: None
    • Environment:
      12.0.0 SNAPSHOT 20140918
    • Rank:
      1|hzm54n:
    • Sprint:
      Sprint 70 - Team Newton, Sprint 71 - Team Newton, Sprint 72 - Team Newton, Sprint 73 - Team Newton, Sprint 74 - Team Newton, Sprint 75 - Team Newton, Sprint 76 - Team Newton, Sprint 77 - Team Newton

      Description

      If a new rule is created for a policy through the REST endpoint and then verify through querying the policy through a REST and then checking the policy debug log.

      Response from query:

      curl --request POST --header "iPlanetDirectoryPro: AQIC5w..." --header "Content-Type: application/json" --data '{ "resources: ["http://example.com:80/index.html?param1=val1&*"], "name": "testREST", "subject": {"type": "AnyUser"}, "active": true, "actionValues": {"GET": true, "POST": false} }' "http://perf-openam.internal.forgerock.com:8080/openam/json/policies/?_action=create&_prettyPrint=true"
      {
        "name" : "testREST",
        "active" : true,
        "resources" : [ "http://example.com:80/index.html?*&param1=val1" ],
        "applicationName" : "iPlanetAMWebAgentService",
        "actionValues" : {
          "POST" : false,
          "GET" : true
      ...
      

      In Policy query:
      If I read policy and I get correct result

      curl --header "iPlanetDirectoryPro: AQIC5w..." "http://perf-openam.internal.forgerock.com:8080/openam/json/policies/?_queryFilter=true&_prettyPrint=true"
      {
        "result" : [ {
          "name" : "testREST",
          "active" : true,
          "resources" : [ "http://example.com:80/index.html?param1=val1&*" ],
          "applicationName" : "iPlanetAMWebAgentService",
          "actionValues" : {
            "POST" : false,
            "GET" : true
      ...
      

      In Policy Debug Log:

      amEntitlements:09/26/2014 11:50:52:187 AM BST: Thread[Grizzly-worker(3),5,main]
      Policy path index 'http://example.com:80/index.html?*&param1=val1' updated for realm '/'.
      amPolicy:09/26/2014 11:50:52:194 AM BST: Thread[http-8080-4,5,main]
      at firePrivilegeChanged(serrviceName,affectedResourceNames):iPlanetAMWebAgentService:[http://example.com:80/index.html?*&param1=val1]
      amPolicy:09/26/2014 11:50:52:194 AM BST: Thread[http-8080-4,5,main]
      PolicyEvaulator.policyChanged():serviceTypeName=iPlanetAMWebAgentService
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jaco.jooste Jaco Jooste
              Reporter:
              amrwalk Alex Walker [X] (Inactive)
              QA Assignee:
              Alex Walker [X] Alex Walker [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: