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

Can provide a SimpleTime condition to a policy with a end DateTime before the start DateTime.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Expired
    • Affects Version/s: 12.0.0
    • Fix Version/s: None
    • Component/s: policy
    • Labels:
    • Environment:
      OpenAM 12 SNAPSHOT 13th Oct 2014
    • Rank:
      1|hzorwf:

      Description

      curl --request POST --header "iPlanetDirectoryPro: AQIC5wM2LY4SfcxpliJvM7ddT-Tru8Jg7k1xnhtPCORbS1I.*AAJTSQACMDEAAlNLABM0MTAxMjM3MDczNjM3MzEwMTc5*" --header "Content-Type: application/json" --data '{ "resources": ["http://example.com:80/simpletime.html"], "name": "simpleTimePolicy", "subject": {"type": "AuthenticatedUsers"}, "active": true, "actionValues": {"GET": true, "POST": false}, "condition" : {"type" : "SimpleTime", "endDate": "2014:01:01", "endDay": "Monday", "endTime": "07:00","startDate": "2014:10:13", "startDay": "Monday", "startTime": "12:00", "enforcementTimeZone": "GMT+0:00"} }' "http://amrwalktest.internal.forgerock.com:18080/openam/json/policies/?_action=create&_prettyPrint=true"
      {
        "name" : "simpleTimePolicy",
        "active" : true,
        "applicationName" : "iPlanetAMWebAgentService",
        "actionValues" : {
          "POST" : false,
          "GET" : true
        },
        "resources" : [ "http://example.com:80/simpletime.html" ],
        "subject" : {
          "type" : "AuthenticatedUsers"
        },
        "condition" : {
          "type" : "SimpleTime",
          "startTime" : "12:00",
          "endTime" : "07:00",
          "startDay" : "Monday",
          "endDay" : "Monday",
          "startDate" : "2014:10:13",
          "endDate" : "2014:01:01",
          "enforcementTimeZone" : "GMT+0:00"
        },
        "lastModifiedBy" : "id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org",
        "lastModified" : "2014-10-13T13:23:51Z",
        "createdBy" : "id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org",
        "creationDate" : "2014-10-13T13:23:51Z"
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            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: