You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2018/09/27 06:59:05 UTC

[4/5] ranger git commit: RANGER-2193: Form validation during testconnection should be consistent with service creation/editing

RANGER-2193: Form validation during testconnection should be consistent with service creation/editing

Signed-off-by: peng.jianhua <pe...@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/6792e65a
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/6792e65a
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/6792e65a

Branch: refs/heads/ranger-1
Commit: 6792e65ac21cb73e00bf639bc89f9ca714ff8f08
Parents: d897bc9
Author: zhangqiang2 <zh...@zte.com.cn>
Authored: Sat Aug 18 13:46:03 2018 +0800
Committer: Mehul Parikh <me...@apache.org>
Committed: Thu Sep 27 12:06:03 2018 +0530

----------------------------------------------------------------------
 .../src/main/webapp/scripts/views/service/ServiceCreate.js        | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/6792e65a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js b/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
index 7c2c778..2f063fa 100644
--- a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
+++ b/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
@@ -193,6 +193,9 @@ define(function(require){
 			if(! _.isEmpty(errors)){
 				return;
 			}
+			if (!this.form.formValidation()) {
+				return;
+			}
 			this.form.beforeSave();
 			this.model.testConfig(this.model,{
 					//wait: true,