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/10/11 14:37:00 UTC
[jira] [Updated] (RANGER-3886) Validity Scheduler , recurrence schedule: Ranger reports overlapping ranges though there are no overlapping values
[ https://issues.apache.org/jira/browse/RANGER-3886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dineshkumar Yadav updated RANGER-3886:
--------------------------------------
Fix Version/s: 3.0.0
> Validity Scheduler , recurrence schedule: Ranger reports overlapping ranges though there are no overlapping values
> ------------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-3886
> URL: https://issues.apache.org/jira/browse/RANGER-3886
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Sharmadha S
> Assignee: Dineshkumar Yadav
> Priority: Major
> Fix For: 3.0.0
>
>
> In the following policy , validitySchedules.recurrences.schedule.hour is given as "hour":"1-5, 10-12" which is not overlapping
> {code:java}
> {
> "end-one-entity-classification":null,
> "name":"test_validity_scheduler_pgcdren",
> "service":"cm_atlas",
> "isAuditEnabled":true,
> "zoneName":"",
> "end-two-entity-classification":null,
> "isDenyAllElse":false,
> "end-two-entity-type":null,
> "validitySchedules":[
> {
> "timeZone":"Antarctica/Macquarie",
> "endTime":"2030/02/03 00:00:00",
> "recurrences":[
> {
> "interval":{
> "minutes":1
> },
> "schedule":{
> "dayOfWeek":"1",
> "hour":"1-5, 10-12",
> "month":"2",
> "year":"2020",
> "minute":"10",
> "dayOfMonth":"1"
> }
> }
> ],
> "startTime":"2018/01/12 00:00:00"
> }
> ],
> "denyPolicyItems":[
> {
> "users":[
> "hrt_qa"
> ],
> "accesses":[
> {
> "isAllowed":true,
> "type":"entity-read"
> },
> {
> "isAllowed":true,
> "type":"entity-create"
> },
> {
> "isAllowed":true,
> "type":"entity-update"
> },
> {
> "isAllowed":true,
> "type":"entity-delete"
> }
> ]
> }
> ],
> "end-two-entity":null,
> "policyItems":[
>
> ],
> "end-one-entity-type":null,
> "policyLabels":[
>
> ],
> "type":null,
> "end-one-entity":null,
> "resources":{
> "entity":{
> "isExcludes":false,
> "values":[
> "*"
> ],
> "isRecursive":false
> },
> "entity-type":{
> "isExcludes":false,
> "values":[
> "ml_model"
> ],
> "isRecursive":false
> },
> "entity-classification":{
> "isExcludes":false,
> "values":[
> "*"
> ],
> "isRecursive":false
> }
> },
> "description":"cm_atlas"
> }
> {code}
> But Ranger throws :
> {code:java}
> { "statusCode": 1, "msgDesc": "(0) Validation failure: error code[0], reason[overlapping range value], field[hour], subfield[], type[semantically incorrect] "}{code}
>
> Same issue is thrown for minutes , dayOfWeek ,month, year, dayOfMonth
--
This message was sent by Atlassian Jira
(v8.20.10#820010)