AMBARI-9746 Security : Via fast clicking few times on "next" button on 2 step 
we can reach 4 step with 500 error instantly (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 1ef3c74b7b6f3b1df32f7af71d5debc86a8d8673
Parents: c4bbc30
Author: aBabiichuk <ababiic...@cybervisiontech.com>
Authored: Mon Feb 23 16:22:49 2015 +0200
Committer: aBabiichuk <ababiic...@cybervisiontech.com>
Committed: Mon Feb 23 19:02:37 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/admin/kerberos/step2_controller.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1ef3c74b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js 
b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
index 87ba550..f32879f 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
@@ -109,6 +109,7 @@ App.KerberosWizardStep2Controller = 
App.WizardStep7Controller.extend({
   },
 
   submit: function () {
+    if (this.get('isSubmitDisabled')) return false;
     this.set('isSubmitDisabled', true);
     var self = this;
     this.deleteKerberosService().always(function (data) {

Reply via email to