Project

General

Profile

Bug #55802

action backoffice-fields : affecter n'importe quoi dans un champ carte ne devrait pas produire de 500

Added by Benjamin Dauvergne 2 months ago. Updated 2 months ago.

Status:
Nouveau
Priority:
Normal
Target version:
-
Start date:
23 Jul 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

La trace https://sentry.entrouvert.org/entrouvert/nfrance/issues/51338 le ticket client #55794.

Exception: invalid coordinates '28 Rue Saint Léon 31400 Toulouse' (missing ;)
  File "wcs/compat.py", line 56, in get
    context = self.get_context_data(**kwargs)
  File "wcs/views.py", line 37, in get_context_data
    body = get_publisher().try_publish(get_request())
  File "quixote/publish.py", line 241, in try_publish
    output = self.root_directory._q_traverse(components)
  File "modules/root.py", line 303, in _q_traverse
    output = Directory._q_traverse(self, path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/backoffice/root.py", line 84, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 116, in _q_traverse
    return super(AccessControlled, self)._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/backoffice/management.py", line 488, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "quixote/directory.py", line 88, in _q_traverse
    return obj._q_traverse(path)
  File "wcs/forms/common.py", line 832, in _q_traverse
    return super()._q_traverse(path)
  File "quixote/directory.py", line 92, in _q_traverse
    return obj()
  File "wcs/backoffice/management.py", line 2857, in _q_index
    return self.status()
  File "wcs/forms/common.py", line 565, in status
    response = self.check_submitted_form(form)
  File "wcs/forms/common.py", line 363, in check_submitted_form
    url = self.submit(form)
  File "wcs/forms/common.py", line 651, in submit
    next_url = self.filled.handle_workflow_form(user, form)
  File "wcs/formdata.py", line 637, in handle_workflow_form
    return wf_status.handle_form(form, self, user)
  File "wcs/workflows.py", line 1762, in handle_form
    url = perform_items(action.items, filled, event=('global-action-button', action.id))
  File "wcs/workflows.py", line 107, in perform_items
    url = perform_items(wf_status.items, formdata, depth=depth - 1, event='continuation') or url
  File "wcs/workflows.py", line 84, in perform_items
    url = item.perform(formdata) or url
  File "wcs/wf/backoffice_fields.py", line 181, in perform
    formdef_field.set_value(formdata.data, new_value)
  File "wcs/fields.py", line 3068, in set_value
    raise Exception('invalid coordinates %r (missing ;)' % value)

History

#1

Updated by Benjamin Dauvergne 2 months ago

  • Tracker changed from Development to Bug
#3

Updated by Frédéric Péters 2 months ago

  • Assignee set to Frédéric Péters

Also available in: Atom PDF