[ 
https://issues.apache.org/jira/browse/RANGER-568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj updated RANGER-568:
------------------------------------
    Summary: RangerTimeOfDayMatcher condition does not handle 12am/12pm 
correctly  (was: RangerTimeOfDayMatcher does not handle 12am/12pm correctly)

> RangerTimeOfDayMatcher condition does not handle 12am/12pm correctly
> --------------------------------------------------------------------
>
>                 Key: RANGER-568
>                 URL: https://issues.apache.org/jira/browse/RANGER-568
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 0.5.0
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>             Fix For: 0.5.0
>
>
> RangerTimeOfDayMatcher treats 12am as 720 minutes and 12pm as 1440 minutes 
> from start of the day (midnight). This is incorrect. This results in 
> incorrect condition evaluation when the startTime or endTime in the condition 
> has 12am or 12pm. For example, a condition that allows access between 
> 11am-12pm ends up allowing access from 11am-12am (13 hour duration, instead 
> of 1 hour).
> 12am should be treated as 0 minutes and 12pm should be treated as 720 minutes 
> from the start of the day (midnight)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to