瀏覽代碼

[oozie] Fix rerun workflow URL when Knox is enabled (#3003)

Ying Chen 3 年之前
父節點
當前提交
aecf9b0ff5

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/rerun_coord_popup.mako

@@ -99,7 +99,7 @@
     $('#submit-rerun-form${ SUFFIX }').submit(function (e) {
       $.ajax({
         type: "POST",
-        url: '${ action }',
+        url: window.HUE_BASE_URL + '${ action }', // window.HUE_BASE_URL is empty string when Knox is not enabled
         data: $('#submit-rerun-form${ SUFFIX }').serialize(),
         success: function (data) {
           huePubSub.publish('submit.rerun.popup.return${ SUFFIX }', data);

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/rerun_workflow_popup.mako

@@ -109,7 +109,7 @@
         $('#submit-rerun-form${ SUFFIX }').submit(function (e) {
           $.ajax({
             type: "POST",
-            url: '${ action }',
+            url: window.HUE_BASE_URL + '${ action }', // window.HUE_BASE_URL is empty string when Knox is not enabled
             data: $('#submit-rerun-form${ SUFFIX }').serialize(),
             success: function (data) {
               huePubSub.publish('submit.rerun.popup.return${ SUFFIX }', data);