فهرست منبع

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

Yusaku Sako 11 سال پیش
والد
کامیت
8932e6472e
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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)));
       });