Sharmadha S created RANGER-3889:
-----------------------------------

             Summary: Validity Scheduler , recurrence schedule: When 
schedule.year is not in the time interval specified within startTime, endTime , 
no error is thrown
                 Key: RANGER-3889
                 URL: https://issues.apache.org/jira/browse/RANGER-3889
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: Sharmadha S


For the validity schedule:
{code:java}
"validitySchedules":[
   {
      "startTime":"2018/01/12 14:32:00",
      "endTime":"2018/02/03 12:16:00",
      "recurrences":[
         {
            "schedule":{
               "minute":"0, 10, 20, 30, 40, 50",
               "hour":"*",
               "dayOfMonth":"*",
               "dayOfWeek":"5, 7",
               "month":"*",
               "year":"2020"
            },
            "interval":{
               "minutes":9
            }
         }
      ]
   }
],
 {code}
schedule.year is 2020 but the startTime , endTime is in 2018. 

Ranger doesn't throw any error when creating the policy. 

Expected is 400 Bad request with the right error message.

This is *not a regression* as there was no automation existing before for this 
case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to