Project

General

Profile

Bug #69102

formdata, submission_agent_id = Ellipsis (UndefinedColumn: ERREUR: la colonne « ellipsis » n'existe pas)

Added by Sentry Io 5 months ago. Updated about 1 month ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
15 September 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/94081/

UndefinedColumn: ERREUR:  la colonne « ellipsis » n'existe pas
LINE 3: ...WHERE users.id IN (155, 177, 167, 19, 32, 27, 37, Ellipsis, ...
                                                             ^

(8 additional frame(s) were not displayed)
...
  File "quixote/directory.py", line 92, in _q_traverse
    return obj()
  File "wcs/backoffice/management.py", line 2456, in json
    output = JsonFileExportAfterJob(self.formdef).create_json_export(
  File "wcs/backoffice/management.py", line 4292, in create_json_export
    for x in get_publisher().user_class.get_ids(user_ids, ignore_errors=True)
  File "wcs/sql.py", line 631, in f
    return func(*args, **kwargs)
  File "wcs/sql.py", line 2161, in get_ids
    cur.execute(sql_statement)

History

#1

Updated by Lauréline Guérin 5 months ago

  • Project changed from Suivi des traces to w.c.s.
  • Subject changed from UndefinedColumn: ERREUR: la colonne « ellipsis » n'existe pas to export json de formdata, user_id qui vaut Ellipsis (UndefinedColumn: ERREUR: la colonne « ellipsis » n'existe pas)
  • Assignee set to Lauréline Guérin

conséquence de #68753 ?

#3

Updated by Lauréline Guérin 5 months ago

  • Subject changed from export json de formdata, user_id qui vaut Ellipsis (UndefinedColumn: ERREUR: la colonne « ellipsis » n'existe pas) to formdata, submission_agent_id = Ellipsis (UndefinedColumn: ERREUR: la colonne « ellipsis » n'existe pas)
#4

Updated by Lauréline Guérin 5 months ago

  • Assignee deleted (Lauréline Guérin)
#7

Updated by Benjamin Dauvergne 5 months ago

  • Status changed from Nouveau to Résolu (à déployer)

C'est une vieille demande, 27 juillet 2021 mais tu as corrigé le chemin de submit qu'après pour le support basic auth :

commit e44cf60a88fc81fc9221f879b9f83a75d1b5253d (origin/wip/55858-api-formdata-submit-auth-http-basic)
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Sep 14 15:49:48 2021 +0200

    api: add basic auth support to forms submit (#55858)
...
-        if meta.get('backoffice-submission'):
+        if meta.get('backoffice-submission') and not user.is_api_user:
             # keep track of the agent that did the submit
             formdata.submission_agent_id = str(user.id)

Ce bug avec Ellipsis n'est plus présent, je dirai de simplement nettoyer la demande.

#10

Updated by Frédéric Péters about 1 month ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF