You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2015/06/25 10:45:05 UTC

[jira] [Created] (RANGER-568) RangerTimeOfDayMatcher does not handle 12am/12pm correctly

Madhan Neethiraj created RANGER-568:
---------------------------------------

             Summary: RangerTimeOfDayMatcher 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)