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

Curl command for agent inheritance does not work for AM 5.x

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.1.0, 14.5.0
    • Fix Version/s: 6.0.0, 6.0.0.1, 6.0.0.2
    • Component/s: None
    • Labels:
      None
    • Support Ticket IDs:

      Description

      Bug description

      Curl command for agent inheritance does not work for AM 5.x

      How to reproduce the issue

      #1. Create a j2eeagent profile  - j2eeagent

      #2. Create a j2eeagent group  - myJ2EEagent

      #3. Link j2eeagent to the j2eegroup

      #4. OpenAM Service -> User Data Cache Service

      The value for com.iplanet.am.sdk.remote.pollingTime or userDataCachePollingTime is default at 1.

       

      #5. Run the script-5.1.0 against OpenAM 5.x

       

      AM 5.5.1

      ========

      In this report, I am testing this value

      "userDataCachePollingTime" : {
       "inherited" : true,
       "value" : 5566
       },

      Observation :  inherited property does not work in OpenAM 5.5.1 The value is set to empty

       

       However, the value does get updated if you set the inherited to false.

       "userDataCachePollingTime" : {
          "inherited" : false,
          "value" : 1234
        },
      

       

       

       

      AM 5.1.0

      ========

       AM 5.1.0 does not work at all.

      I have discovered that OpenAM 5.1.0 does not implement the "inherited" property at all.

       

      Schema

      =======

       

      I have verified the AM 5/6  schema via the API explorer

      curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://openam.internal.example.com:8080/openam/json/realm-config/agents/J2EEAgent?_prettyPrint=true&_action=schema'

      AM 5.1.0 ( inherited property is missing )

       

      "userDataCachePollingTime": {
      "title": "User Data Cache Polling Time",
      "description": "Cache update time in minutes for user management data. If set to '0' no updates happen. (property name: com.iplanet.am.sdk.remote.pollingTime) <br>Hot-swap: No",
      "propertyOrder": 10600,
      "required": true,
      "type": "integer",
      "exampleValue": "" },
      

       

       AM 5.5.1

        "userDataCachePollingTime" : {
       "title" : "User Data Cache Polling Time",
       "description" : "Cache update time in minutes for user management data. If set to '0' no updates happen. (property name: com.iplanet.am.sdk.remote.pollingTime) <br>Hot-swap: No",
       "propertyOrder" : 10600,
       "type" : "object",
       "exampleValue" : "",
       "properties" : {
       "inherited" : {                <===========
       "type" : "boolean",
       "required" : true
       },
       "value" : {
       "type" : "integer",
       "required" : true
       }
       }
       },

       

      AM 6.0.0.2 

      "userDataCachePollingTime" : {
       "title" : "User Data Cache Polling Time",
       "description" : "Cache update time in minutes for user management data. If set to '0' no updates happen. (property name: com.iplanet.am.sdk.remote.pollingTime) <br>Hot-swap: No",
       "propertyOrder" : 10600,
       "type" : "object",
       "exampleValue" : "",
       "properties" : {
       "inherited" : {                   <=======
       "type" : "boolean",
       "required" : true
       },
       "value" : {
       "type" : "integer",
       "required" : false
       }
       }
       }
       }
       },

       

      Expected behaviour

      The agent inherited the value from the parent group 
      
      Current behaviour
      The inherited property does not work in M 5.5.1 or 5.1.0
      

      Work around

      I have tested the OpenAM 6.0.0.2 and it is working.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sam.phua Sam Phua
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: