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

REST API resource version for WebAgent or other agents type is always 1.0 between versions.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0, 14.1.0, 14.1.1, 5.5.1
    • Fix Version/s: None
    • Component/s: API descriptor, rest
    • Labels:
    • Target Version/s:
    • Support Ticket IDs:

      Description

      Bug description

      By checking the API for 14.1.1, 5.5.1 and 6.0.0 (from /openam/json/?_api), it seems that there is changes in the input/output models for the WebAgent and possibly other (realm-config/agents)

      For example 5.1.1 the WebAgent schema does not have "inherited" and values defined inside a nested Json block

      5.1.1
                "agentDebugLevel": {
                  "type": "string",
                  "description": "Agent debug level. (property name: com.sun.identity.agents.config.debug.level) <br>Hot-swap: Yes",
                  "title": "Agent Debug Level",
                  "x-propertyOrder": 21900
                },
       
      • It seems the 5.1.1 does have agentGroup
      5.5.x 
                     "agentDebugLevel": {
                        "type": "object",
                        "properties": {
                          "inherited": {
                            "type": "boolean"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "title": "Agent Debug Level",
      

      Similarly there is changes in 6.0.0 where new items are created (due to inheritance and hence the inherited. But 5.5.x is not yet ready for this (other than the OAuth2 with does have agentGroup for the inheritance). 5.5.x schema seems it does not show.

      The main issues is they all have resource version 1.0 (in the API descriptor)

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)

      1. Just install the respective AM
      2. Goto API Explorer and check the resource version
      3. Get the /openam/json/?_api to get the API descriptor and compare some of the WebAgent and other schema.
      4. ...
      Expected behaviour
      Different schema should be versioned corrected (or if this is unstable) should probably be labelled as such (to avoid use)
      
      Current behaviour
      The API version looks the same but then it does not seems these are all the same behaving.
      

      Work around

      None.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chee-weng.chea C-Weng C
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: