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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]