Project

General

Profile

Bug #73823

crash dans WorkflowTrace.get_base_url avec self.external_workflow qui vaut None

Added by Benjamin Dauvergne 6 days ago. Updated about 21 hours ago.

Status:
Solution validée
Priority:
Normal
Target version:
-
Start date:
25 January 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Ticket client #73814

Ticket sentry https://sentry.entrouvert.org/entrouvert/gplexpert/issues/104610/

La trace :

AttributeError: 'NoneType' object has no attribute 'get_status'
  File "wcs/compat.py", line 71, in get
    context = self.get_context_data(**kwargs)
  File "wcs/views.py", line 47, in get_context_data
    body = template.render(body.templates, body.context)
  File "wcs/qommon/template.py", line 196, in render
    result = render_to_string(template_name, context, request=request)
  File "django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "django/template/base.py", line 171, in render
    return self._render(context)
  File "django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "django/template/base.py", line 163, in _render
    return self.nodelist.render(context)
  File "django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "django/template/defaulttags.py", line 312, in render
    return nodelist.render(context)
  File "django/template/base.py", line 937, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 904, in render_annotated
    return self.render(context)
  File "django/template/base.py", line 987, in render
    output = self.filter_expression.resolve(context)
  File "django/template/base.py", line 671, in resolve
    obj = self.var.resolve(context)
  File "wcs/qommon/template.py", line 345, in variable_resolve
    value = variable_resolve_orig(self, context)
  File "django/template/base.py", line 796, in resolve
    value = self._resolve_lookup(context)
  File "django/template/base.py", line 858, in _resolve_lookup
    current = current()
  File "wcs/backoffice/management.py", line 3787, in inspect_tracing
    trace.get_external_url(global_event),
  File "wcs/workflow_traces.py", line 88, in get_external_url
    self.get_base_url(
  File "wcs/workflow_traces.py", line 104, in get_base_url
    status = workflow.get_status(status_id)

History

#2

Updated by Lauréline Guérin 4 days ago

  • Assignee set to Lauréline Guérin
#3

Updated by Gitea (Bot) Gitea 4 days ago

  • Status changed from Nouveau to Solution proposée

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#4

Updated by Gitea (Bot) Gitea about 21 hours ago

  • Status changed from Solution proposée to Solution validée

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

Also available in: Atom PDF