[ 
https://issues.apache.org/jira/browse/RANGER-3931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615867#comment-17615867
 ] 

Dineshkumar Yadav commented on RANGER-3931:
-------------------------------------------

master 
[commit|https://github.com/apache/ranger/commit/f0ef01899a98fb2986ee7336763ecff48e690f76]

> Validity Scheduler , recurrence schedule: When schedule year is not in the 
> time interval specified within startTime, endTime , no error is thrown
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-3931
>                 URL: https://issues.apache.org/jira/browse/RANGER-3931
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Dineshkumar Yadav
>            Assignee: Dineshkumar Yadav
>            Priority: Major
>
> For the validity schedule: As per below example. 
> 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.
> {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}



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

Reply via email to