Browse Source

AMBARI-6479. Add Services can cause service start failure due to not trimming extra spaces in log4j property configs. (yusaku)

Yusaku Sako 11 years ago
parent
commit
8932e6472e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ambari-web/app/controllers/wizard/step8_controller.js

+ 3 - 0
ambari-web/app/controllers/wizard/step8_controller.js

@@ -884,6 +884,9 @@ App.WizardStep8Controller = Em.Controller.extend({
     serviceNames.forEach(function (serviceName) {
       var serviceConfigs = configs.filterProperty('serviceName', serviceName);
       var tagName = 'version' + (new Date).getTime();
+      serviceConfigs.forEach(function(config) {
+        config.value = App.config.trimProperty(config, false);
+      });
       serviceConfigs.mapProperty('filename').uniq().forEach(function (siteName) {
         configsMap.push(configurationController.createSiteObj(siteName.replace(".xml", ""), tagName, serviceConfigs.filterProperty('filename', siteName)));
       });