You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2018/12/19 11:51:05 UTC
[ranger] 15/39: RANGER-2257:Add policyID to error message when
click the Access log of Audit
This is an automated email from the ASF dual-hosted git repository.
mehul pushed a commit to branch ranger-1.1
in repository https://gitbox.apache.org/repos/asf/ranger.git
commit 41e0b90c1dc4d3552c3d44a9afb93f745e07fc49
Author: zhangqiang2 <zh...@zte.com.cn>
AuthorDate: Fri Oct 19 11:21:45 2018 +0800
RANGER-2257:Add policyID to error message when click the Access log of Audit
Signed-off-by: peng.jianhua <pe...@zte.com.cn>
---
security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
index 63c9432..f2d61d3 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
@@ -2838,7 +2838,7 @@ public class ServiceDBStore extends AbstractServiceStore {
AppConstants.CLASS_TYPE_RANGER_POLICY, policyId);
if (xDataHist == null) {
- String errMsg = "No policy history found for given time: " + eventTime;
+ String errMsg = "No policy history found for given policy ID: " + policyId + " and event time: " + eventTime;
LOG.error(errMsg);
throw restErrorUtil.createRESTException(errMsg, MessageEnums.DATA_NOT_FOUND);
}