Repository: ambari
Updated Branches:
  refs/heads/trunk 7b73e225b -> 1d4959442


AMBARI-9757. When toggling Ranger HBase plugin, UI gives incorrect 
recommendations (srimanth)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1d495944
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1d495944
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1d495944

Branch: refs/heads/trunk
Commit: 1d495944291077fe69e62c692f21e9e8223bcbd5
Parents: 7b73e22
Author: Srimanth Gunturi <sgunt...@hortonworks.com>
Authored: Mon Feb 23 14:01:00 2015 -0800
Committer: Srimanth Gunturi <sgunt...@hortonworks.com>
Committed: Mon Feb 23 14:01:06 2015 -0800

----------------------------------------------------------------------
 ambari-web/app/utils/configs/modification_handlers/hbase.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1d495944/ambari-web/app/utils/configs/modification_handlers/hbase.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/configs/modification_handlers/hbase.js 
b/ambari-web/app/utils/configs/modification_handlers/hbase.js
index 1fb6b29..b5a342f 100644
--- a/ambari-web/app/utils/configs/modification_handlers/hbase.js
+++ b/ambari-web/app/utils/configs/modification_handlers/hbase.js
@@ -37,7 +37,7 @@ module.exports = App.ServiceConfigModificationHandler.create({
       if (authEnabled) {
         var nonXaClassIndex = currentClassesList.indexOf(nonXAClass);
         if (nonXaClassIndex > -1) {
-          currentClassesList = currentClassesList.splice(nonXaClassIndex, 
nonXaClassIndex);
+          currentClassesList.splice(nonXaClassIndex, 1);
           newClassesList = currentClassesList;
         }
         var xaClassIndex = currentClassesList.indexOf(xaAuthCoProcessorClass);
@@ -48,7 +48,7 @@ module.exports = App.ServiceConfigModificationHandler.create({
       } else {
         var xaClassIndex = currentClassesList.indexOf(xaAuthCoProcessorClass);
         if (xaClassIndex > -1) {
-          currentClassesList = currentClassesList.splice(xaClassIndex, 
xaClassIndex);
+          currentClassesList.splice(xaClassIndex, 1);
           newClassesList = currentClassesList;
         }
         if (addOldValue) {
@@ -92,8 +92,8 @@ module.exports = App.ServiceConfigModificationHandler.create({
       var newRpcProtectionValue = authEnabled ? "privacy" : "authentication";
 
       // Add Hive-Ranger configs
-      this.updateConfigClasses(configMasterClasses, authEnabled, 
affectedProperties, configAuthEnabled.get('value') != 'true');
-      this.updateConfigClasses(configRegionClasses, authEnabled, 
affectedProperties, configAuthEnabled.get('value') != 'true');
+      this.updateConfigClasses(configMasterClasses, authEnabled, 
affectedProperties, configAuthEnabled.get('value') == 'true');
+      this.updateConfigClasses(configRegionClasses, authEnabled, 
affectedProperties, configAuthEnabled.get('value') == 'true');
       if (newRpcProtectionValue !== configRpcProtection.get('value')) {
         affectedProperties.push({
           serviceName : "HBASE",

Reply via email to