ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject incubator-ranger git commit: RANGER-1274:Do some improvement for the error message in org.apache.ranger.biz.UserMgr.java file: add space between the sentences.
Date Wed, 21 Dec 2016 15:13:51 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master c4b054289 -> 2f77beafa


RANGER-1274:Do some improvement for the error message in org.apache.ranger.biz.UserMgr.java
file: add space between the sentences.

Signed-off-by: Colm O hEigeartaigh <coheigea@apache.org>


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

Branch: refs/heads/master
Commit: 2f77beafaa0bffe1e6bfc6e6597f1fff7b569e4d
Parents: c4b0542
Author: zhangqiang2 <zhangqiang2@zte.com.cn>
Authored: Wed Dec 21 09:17:37 2016 +0800
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Dec 21 15:13:46 2016 +0000

----------------------------------------------------------------------
 security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2f77beaf/security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java b/security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java
index 8f3acd4..3f6e2cc 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java
@@ -1003,7 +1003,7 @@ public class UserMgr {
 		XXPortalUser gjUser = daoManager.getXXPortalUser().getById(userId);
 		if (gjUser == null) {
 			throw restErrorUtil
-					.create403RESTException("serverMsg.userMgrWrongUser"
+					.create403RESTException("serverMsg.userMgrWrongUser: "
 							+ userId);
 		}
 
@@ -1245,7 +1245,7 @@ public class UserMgr {
 		if (sess != null && sess.isUserAdmin()) {
 			return;
 		}
-		throw restErrorUtil.create403RESTException("Operation not allowed." + " loggedInUser="
+ (sess != null ? sess.getXXPortalUser().getId() : "Not Logged In"));
+		throw restErrorUtil.create403RESTException("Operation not allowed." + " loggedInUser="
+ (sess != null ? sess.getXXPortalUser().getId() : ". Not Logged In."));
 	}
 
 	public Collection<String> getRolesByLoginId(String loginId) {


Mime
View raw message