ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pengjian...@apache.org
Subject ranger git commit: RANGER-1878 The exception infomation print error for RangerPolicyServiceBase.java
Date Thu, 04 Jan 2018 03:05:46 GMT
Repository: ranger
Updated Branches:
  refs/heads/master 252af4910 -> 5da7000f8


RANGER-1878 The exception infomation print error for RangerPolicyServiceBase.java

Signed-off-by: peng.jianhua <peng.jianhua@zte.com.cn>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/5da7000f
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/5da7000f
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/5da7000f

Branch: refs/heads/master
Commit: 5da7000f82e8c052aef23bcbdb89dcfc108d6aa3
Parents: 252af49
Author: wangyuan <wang.yuan17@zte.com.cn>
Authored: Wed Nov 8 16:08:50 2017 +0800
Committer: peng.jianhua <peng.jianhua@zte.com.cn>
Committed: Thu Jan 4 10:55:50 2018 +0800

----------------------------------------------------------------------
 .../java/org/apache/ranger/service/RangerPolicyServiceBase.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/5da7000f/security-admin/src/main/java/org/apache/ranger/service/RangerPolicyServiceBase.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/service/RangerPolicyServiceBase.java
b/security-admin/src/main/java/org/apache/ranger/service/RangerPolicyServiceBase.java
index 0195c72..5d3af2f 100644
--- a/security-admin/src/main/java/org/apache/ranger/service/RangerPolicyServiceBase.java
+++ b/security-admin/src/main/java/org/apache/ranger/service/RangerPolicyServiceBase.java
@@ -83,7 +83,7 @@ public abstract class RangerPolicyServiceBase<T extends XXPolicyBase,
V extends
 		XXService xService = daoMgr.getXXService().findByName(vObj.getService());
 		if (xService == null) {
 			throw restErrorUtil.createRESTException("No corresponding service found for policyName:
" + vObj.getName()
-					+ "Service Not Found : " + vObj.getName(), MessageEnums.INVALID_INPUT_DATA);
+					+ "Service Not Found : " + vObj.getService(), MessageEnums.INVALID_INPUT_DATA);
 		}
 		xObj.setService(xService.getId());
 		xObj.setName(StringUtils.trim(vObj.getName()));


Mime
View raw message