Edgar Orendain created AMBARI-20350:
---------------------------------------
Summary: API url in WFManager View hardcoded to HTTP, causing
issues when Ambari running on HTTPS
Key: AMBARI-20350
URL: https://issues.apache.org/jira/browse/AMBARI-20350
Project: Ambari
Issue Type: Bug
Components: contrib
Affects Versions: 2.4.2
Reporter: Edgar Orendain
Priority: Critical
Situation:
Ambari is running on HTTPS and any WFManager API is called (submit a job, save
a flow, etc).
The browser complains:
'https://xx.xx.xx:8443/gateway/hdc/ambari/#/main/views/WORKFLOW_MANAGER/1.0.0/WFM'
was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
'http://localhost:11002/oozie/submitJob?app.path=/user/admin/shellwf.xml&ove…ig.rerunOnFailure=true&oozieparam.action=dryrun&resourceManager=useDefault'.
This request has been blocked; the content must be served over HTTPS.
The cause is that the Ember.ENV.API_URL value, which is used to generate the
endpoint URIs is hardcoded to use the HTTP protocol:
https://github.com/apache/ambari/blob/109bba17ec9d48a5061f2c261325a5b8c445f423/contrib/views/wfmanager/src/main/resources/ui/config/environment.js#L31
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)