Jelajahi Sumber

AMBARI-1441.Validation for username used in service configs is broken. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1448435 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 tahun lalu
induk
melakukan
d0e4ebcdc2
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/models/service_config.js

+ 3 - 0
CHANGES.txt

@@ -298,6 +298,9 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1441. Validation for username used in service configs is broken.
+ (yusaku)
+
  AMBARI-1456. Cannot proceed after bootstrapping in some cases due to a
  run-time error while running host checks. (yusaku)
 

+ 1 - 1
ambari-web/app/models/service_config.js

@@ -379,8 +379,8 @@ App.ServiceConfigProperty = Ember.Object.extend({
         case 'user':
           if (!validator.isValidUserName(value)) {
             this.set('errorMessage', Em.I18n.t('users.userName.validationFail'));
+            isError = true;
           }
-          isError = true;
           break;
         case 'email':
           if (!validator.isValidEmail(value)) {