You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/08/23 12:05:34 UTC

[ambari] branch trunk updated: AMBARI-24524 Unable to validate password complexity for properties rangertagsync_user_password, rangerusersync_user_password

This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new dda8b50  AMBARI-24524 Unable to validate password complexity for properties rangertagsync_user_password, rangerusersync_user_password
dda8b50 is described below

commit dda8b504ab2b62b28964a7ca6220b4fbe060f2ce
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Wed Aug 22 14:06:39 2018 +0300

    AMBARI-24524 Unable to validate password complexity for properties rangertagsync_user_password, rangerusersync_user_password
---
 ambari-web/app/mixins/common/serverValidator.js |  7 ++-----
 ambari-web/app/styles/application.less          |  1 +
 ambari-web/app/styles/bootstrap_overrides.less  | 16 ++++++++--------
 ambari-web/app/utils/ajax/ajax.js               |  2 +-
 ambari-web/app/utils/config.js                  |  2 +-
 5 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/ambari-web/app/mixins/common/serverValidator.js b/ambari-web/app/mixins/common/serverValidator.js
index 37d6697..5a363de 100644
--- a/ambari-web/app/mixins/common/serverValidator.js
+++ b/ambari-web/app/mixins/common/serverValidator.js
@@ -197,8 +197,7 @@ App.ServerValidatorMixin = Em.Mixin.create({
       name: 'config.validations',
       sender: this,
       data: validationData,
-      success: 'validationSuccess',
-      error: 'validationError'
+      success: 'validationSuccess'
     });
   },
 
@@ -374,9 +373,7 @@ App.ServerValidatorMixin = Em.Mixin.create({
     var parsed = this.parseValidation(data);
     this.set('configErrorList', this.collectAllIssues(parsed.configErrorsMap, parsed.generalErrors));
   },
-
-  validationError: Em.K,
-
+  
   valueObserver: function () {
     var self = this;
     if (this.get('isInstallWizard') && this.get('currentTabName') === 'all-configurations') {
diff --git a/ambari-web/app/styles/application.less b/ambari-web/app/styles/application.less
index 734c5d5..f25297c 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -2215,6 +2215,7 @@ input[type="radio"].align-checkbox, input[type="checkbox"].align-checkbox {
           }
           .property-description {
             font-size: 0.9em;
+            white-space: pre-line;
           }
           .big-checkbox {
             text-align: center;
diff --git a/ambari-web/app/styles/bootstrap_overrides.less b/ambari-web/app/styles/bootstrap_overrides.less
index 9b577d9..8bbe39d 100644
--- a/ambari-web/app/styles/bootstrap_overrides.less
+++ b/ambari-web/app/styles/bootstrap_overrides.less
@@ -30,13 +30,6 @@ select.form-control {
   }
 }
 
-.popover {
-  word-wrap: break-word;  
-  small {
-    font-size: 1.3rem;
-  }
-}
-
 .alert {
   & > ul, ol {
     padding-left: inherit;
@@ -140,11 +133,18 @@ select.form-control {
 }
 
 .popover {
+  word-wrap: break-word;
   z-index: 10000;
   width: 350px;
   .popover-inner {
     word-wrap: break-word;
   }
+  .popover-content {
+    white-space: pre-line;
+  }
+  small {
+    font-size: 1.3rem;
+  }
 }
 
 .text-tooltip {
@@ -461,4 +461,4 @@ input[type="checkbox"]:checked + label:after {
 
 .navigation-bar-container ul.nav.side-nav-menu li.submenu-li > a {
   padding: 10px 5px 10px 46px;
-}
\ No newline at end of file
+}
diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js
index 1f92f7c..1e50d2c 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -3446,7 +3446,7 @@ var ajax = Em.Object.extend({
    * Upon error with one of these statuses modal should be displayed
    * @type {Array}
    */
-  statuses: ['500', '401', '407', '413'],
+  statuses: [500, 401, 407, 413],
 
   /**
    * defaultErrorHandler function is referred from App.ajax.send function and App.HttpClient.defaultErrorHandler function
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index 8c05a9a..9593903 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -475,7 +475,7 @@ App.config = Em.Object.create({
     var additionalDescription = Em.I18n.t('services.service.config.password.additionalDescription');
     if ('password' === displayType) {
       if (description && !description.contains(additionalDescription)) {
-        return description + '<br />' + additionalDescription;
+        return description + '\n' + additionalDescription;
       } else {
         return additionalDescription;
       }