You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/17 08:40:17 UTC
[ambari] branch trunk updated: AMBARI-25426: Error while Validating Coordinator xml in Workflow Manager View (#3519)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo 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 f21fc3b387 AMBARI-25426: Error while Validating Coordinator xml in Workflow Manager View (#3519)
f21fc3b387 is described below
commit f21fc3b3870ba6b8aa15248824d3b6b6292f2feb
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Thu Nov 17 16:40:12 2022 +0800
AMBARI-25426: Error while Validating Coordinator xml in Workflow Manager View (#3519)
---
.../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 1aeca5b49a..df3e834575 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)=>{
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org