浏览代码

HUE-2720 [oozie] Intermittent 500s when trying to view oozie workflow history v1

Romain Rigaux 10 年之前
父节点
当前提交
78af219
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      apps/oozie/src/oozie/templates/editor/gen/workflow-graph-status.xml.mako

+ 2 - 1
apps/oozie/src/oozie/templates/editor/gen/workflow-graph-status.xml.mako

@@ -19,6 +19,7 @@
 <%namespace name="utils" file="../../utils.inc.mako" />
 
 <%!
+  import re
   from django.utils.translation import ugettext as _
 %>
 
@@ -47,7 +48,7 @@
 
 <%def name="get_content(form, action, control, inverse=False)">
   <div class="row-fluid">
-    % if action and action.externalId:
+    % if action and action.externalId and re.match('\\w+', action.externalId):
       <div style="text-align:left; padding:10px;border:1px solid #DDD; border-top:0" class="span12">
           <div style="font-size: 30px; margin-top:14px" class="pull-right"><a href="${ url('jobbrowser.views.job_single_logs', job=action.externalId) }" title="${ _('View the logs') }" rel="tooltip" data-row-selector-exclude="true"><i class="fa fa-tasks"></i></a></div>
           <h4><a href="${ action.get_absolute_url() }" title="${ _('View workflow action') }" rel="tooltip">${ form.instance.__unicode__() }</a></h4>