You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vs...@apache.org on 2019/12/12 07:00:26 UTC

[ambari] branch branch-2.7 updated: [AMBARI-25426] Error while Validating Coordinator xml in Workflow Manager View (asnaik) (#3153)

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

vsairam pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new cb4a5b3  [AMBARI-25426] Error while Validating Coordinator xml in Workflow Manager View (asnaik) (#3153)
cb4a5b3 is described below

commit cb4a5b3eae14d35692e5136a3af642b57e5a658d
Author: Asnaik HWX <as...@hortonworks.com>
AuthorDate: Thu Dec 12 12:30:14 2019 +0530

    [AMBARI-25426] Error while Validating Coordinator xml in Workflow Manager View (asnaik) (#3153)
---
 .../wfmanager/src/main/resources/ui/app/components/coord-config.js    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
index 1aeca5b..df3e834 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
@@ -505,7 +505,9 @@ export default Ember.Component.extend(Validations, Ember.Evented, {
       deferred.promise.then(function(data){
         var x2js = new X2JS();
         var workflowJson = x2js.xml_str2json(data);
-        this.set('workflowName', workflowJson["workflow-app"]._name);
+        if(workflowJson["workflow-app"] && workflowJson["workflow-app"]._name){
+          this.set('workflowName', workflowJson["workflow-app"]._name);
+        }
         var workflowProps = this.get('propertyExtractor').getDynamicProperties(data);
         var dynamicProperties = this.get('coordinatorConfigs.props');
         workflowProps.forEach((prop)=>{