You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by bo...@apache.org on 2016/12/27 23:31:16 UTC
incubator-ranger git commit: RANGER-1224 Changed PermissionList in
order to accommodate user names containing commas. Specifically,
DNs are the use case.
Repository: incubator-ranger
Updated Branches:
refs/heads/master 1e2e04792 -> ed1670212
RANGER-1224 Changed PermissionList in order to accommodate user names containing commas. Specifically, DNs are the use case.
Signed-off-by: Don Bosco Durai <bo...@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/ed167021
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/ed167021
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/ed167021
Branch: refs/heads/master
Commit: ed1670212422a7186974ecd8906393195017ce2c
Parents: 1e2e047
Author: nicholasmhughes <ni...@gmail.com>
Authored: Tue Dec 6 18:23:05 2016 -0500
Committer: Don Bosco Durai <bo...@apache.org>
Committed: Tue Dec 27 15:30:55 2016 -0800
----------------------------------------------------------------------
.../src/main/webapp/scripts/views/policies/PermissionList.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/ed167021/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
index 8a7faec..b66b801 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
@@ -188,7 +188,7 @@ define(function(require) {
searchUrl = (typeGroup) ? "service/xusers/groups" : "service/xusers/users",
getUrl = (typeGroup) ? "service/xusers/groups/groupName/" : "service/xusers/users/userName/";
if(this.model.has('editMode') && !_.isEmpty($select.val())){
- var temp = $select.val().split(",");
+ var temp = this.model.attributes.userName;
_.each(temp , function(name){
if(_.isEmpty(list.where({ 'name' : name}))){
var model = typeGroup ? new VXGroup() : new VXUser();