Workflow error

When things don't work as they should.
Post Reply
m42e
Posts: 12
Joined: Fri Oct 11, 2019 8:21 am

Workflow error

Post by m42e »

Hi,

I recently updated to 3.4.5 from 3.3.9 and when I try to change or add state actions, I get an error message in the browser, and in the docker log I see the following:

Code: Select all

mayan.apps.common.middleware.error_logging <312> [ERROR] "process_exception() line 17 Exception caught by request middleware; <WSGIRequest: GET '/workflows/workflow_templates/states/11/actions/mayan.apps.document_states.workflow_actions.HTTPAction/create/'>, 'verb'"
Traceback (most recent call last):
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/common/mixins.py", line 123, in dispatch
    return super(ExternalObjectMixin, self).dispatch(*args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/common/mixins.py", line 548, in dispatch
    ).dispatch(request, *args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/edit.py", line 168, in get
    return super().get(request, *args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/edit.py", line 133, in get
    return self.render_to_response(self.get_context_data())
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/common/mixins.py", line 101, in get_context_data
    context = super(ExtraContextMixin, self).get_context_data(**kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/common/mixins.py", line 443, in get_context_data
    context = super(RedirectionMixin, self).get_context_data(**kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/edit.py", line 66, in get_context_data
    kwargs['form'] = self.get_form()
  File "/opt/mayan-edms/lib/python3.7/site-packages/django/views/generic/edit.py", line 33, in get_form
    return form_class(**self.get_form_kwargs())
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/document_states/forms.py", line 54, in __init__
    ).__init__(*args, **kwargs)
  File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/common/forms.py", line 155, in __init__
    field_data = self.schema['fields'][field_name]
KeyError: 'verb'
Did I miss a step during the update? Or did I mess something up?
Thanks in advance

m42e
Posts: 12
Joined: Fri Oct 11, 2019 8:21 am

Re: Workflow error

Post by m42e »


User avatar
franco
Developer
Developer
Posts: 17
Joined: Sun Apr 05, 2020 2:30 am

Re: Workflow error

Post by franco »

Thank you very much for this. It has already been accepted and merged to be included in the next release.

Post Reply