This is an automated email from the ASF dual-hosted git repository.

mehul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new 334e22e  RANGER-2602 : Import is failing with - Can not construct 
instance of java.util.Date from String error
334e22e is described below

commit 334e22ed1e507ca6477129cc8cccd8789d8f75b2
Author: Nikhil P <nik...@apache.org>
AuthorDate: Thu Oct 3 18:18:59 2019 +0530

    RANGER-2602 : Import is failing with - Can not construct instance of 
java.util.Date from String error
    
    Signed-off-by: Mehul Parikh <me...@apache.org>
---
 security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 
b/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
index 190c6f5..12b78f0 100644
--- a/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
+++ b/security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
@@ -2651,6 +2651,9 @@ public class ServiceREST {
                if (!CollectionUtils.isEmpty(policyLists)) {
                        for (RangerPolicy policy : policyLists) {
                                if (policy != null) {
+                                       //set createTime & updateTime Time as 
null since exported policies dont need this
+                                       policy.setCreateTime(null);
+                                       policy.setUpdateTime(null);
                                        orderedPolicies.put(policy.getId(), 
policy);
                                }
                        }

Reply via email to