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

endIP not stoped in IP condition, startIP return value is unique long not the IPV4 represtation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0
    • Fix Version/s: 12.0.0
    • Component/s: policy
    • Environment:
      OPENAM 12 20141022 Build
    • Rank:
      1|hzm24f:
    • Sprint:
      Sprint 68 - Team Tesla

      Description

      Create

      curl  --request POST --header "iPlanetDirectoryPro: AQIC5wM2LY4SfcxO1-2BwgX_LJolG1vjTMYcsjq5I7kE1ug.*AAJTSQACMDEAAlNLABQtNzczNDQ0OTkyODkMjgxODk3NQ..*" --header "Content-Type: application/json" --data '{ "resources": ["http://example.com:80/*"], "name": "IPPolicy", "subject": {"type": "AuthenticatedUsers"}, "active": true, "actionValues": {"GET": true, "POST": false}, "condition" : {"type" : "IP", "startIp": "172.24.36.253", "endIp": "172.24.36.253"}  }' "http://amrwalktest.internal.forgerock.com:18080/openam/json/policies/?_action=create&_prettyPrint=true"
      {
        "name" : "IPPolicy",
        "active" : true,
        "applicationName" : "iPlanetAMWebAgentService",
        "actionValues" : {
          "POST" : false,
          "GET" : true
        },
        "resources" : [ "http://example.com:80/*" ],
        "subject" : {
          "type" : "AuthenticatedUsers"
        },
        "condition" : {
          "type" : "IP",
          "ipVersion" : "IPv4",
          "endIp" : "172.24.36.253",
          "startIp" : "172.24.36.253",
          "dnsName" : [ ],
          "ipRange" : [ ]
        }
      

      When Queried:

      {
          "name" : "IPPolicy",
          "active" : true,
          "description" : "",
          "applicationName" : "iPlanetAMWebAgentService",
          "actionValues" : {
            "POST" : false,
            "GET" : true
          },
          "resources" : [ "http://example.com:80/*" ],
          "subject" : {
            "type" : "AuthenticatedUsers"
          },
          "condition" : {
            "type" : "IP",
            "ipVersion" : "IPv4",
            "startIp" : "2887263485",
            "dnsName" : [ ],
            "ipRange" : [ ]
          }
      

      Two issues are present:

      endIP seems to not have been saved although it shows that it has been in the create response.

      startIP the returned value in a query is the unique long for an IP opposed to the IPV4 representation.

        Attachments

          Activity

            People

            Assignee:
            jamesphillpotts James Phillpotts
            Reporter:
            amrwalk Alex Walker [X] (Inactive)
            QA Assignee:
            Alex Walker [X] Alex Walker [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: