This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch ranger-2.6
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.6 by this push:
new 0a193ceae RANGER-5010: fix validity schedule evaluator handling of
default timezone
0a193ceae is described below
commit 0a193ceae167d3690631861ceecba0e9546c435d
Author: Madhan Neethiraj <[email protected]>
AuthorDate: Wed Nov 27 19:20:38 2024 +0000
RANGER-5010: fix validity schedule evaluator handling of default timezone
(cherry picked from commit 651dcf2b0e3c97c97cb24f7814c53d9ea7f77e75)
---
.../ranger/plugin/policyevaluator/RangerValidityScheduleEvaluator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerValidityScheduleEvaluator.java
b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerValidityScheduleEvaluator.java
index 31501c709..5df7933d3 100644
---
a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerValidityScheduleEvaluator.java
+++
b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerValidityScheduleEvaluator.java
@@ -87,7 +87,7 @@ public class RangerValidityScheduleEvaluator {
this.startTime = startTime;
this.endTime = endTime;
- this.timeZone = timeZone;
+ this.timeZone = StringUtils.isNotBlank(timeZone) ? timeZone : "GMT";
if (CollectionUtils.isNotEmpty(recurrences)) {
for (RangerValidityRecurrence recurrence : recurrences) {