You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Dineshkumar Yadav (Jira)" <ji...@apache.org> on 2022/09/26 08:07:00 UTC
[jira] [Created] (RANGER-3931) Validity Scheduler , recurrence schedule: When schedule.year is not in the time interval specified within startTime, endTime , no error is thrown
Dineshkumar Yadav created RANGER-3931:
-----------------------------------------
Summary: 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
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)