소스 검색

HUE-2124 [oozie] HDFS Deployment directory is missing "slash" symbol

Added leading slash on workflow creation
Enrico Berti 11 년 전
부모
커밋
4b4f63f
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      apps/oozie/src/oozie/templates/utils.inc.mako

+ 3 - 2
apps/oozie/src/oozie/templates/utils.inc.mako

@@ -390,8 +390,9 @@
         }
 
         function handleChoice(filePath) {
-          if (filePath.indexOf("${ workflow.deployment_dir }") > -1) {
-            filePath = filePath.substring("${ workflow.deployment_dir }".length + 1);
+          var _deployDir = $.trim("${ workflow.deployment_dir }");
+          if (_deployDir != "" && filePath.indexOf(_deployDir) > -1) {
+            filePath = filePath.substring(_deployDir.length + 1);
             if (filePath == "") {
               filePath = "./";
             }