Bug #50060
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. D...
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
12 janvier 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/27320/
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to chrono-orleans.test.entrouvert.org/api/booking/1349/?orig=demarches-orleans.test.entrouvert.org&algo=sha256×tamp=2021-01-12T08%3A06%3A56Z&nonce=4636bce23fa47bd580639fcd4e221eac&signature=8Q1KXKOmZywKvYTOVfkAkg6oHC01ytZBOIIWjE1qboM%3D (note the trailing slash), or set APPEND_SLASH=False in your Django settings. File "django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "django/utils/deprecation.py", line 138, in __call__ response = self.process_request(request) File "django/middleware/common.py", line 64, in process_request path = self.get_full_path_with_slash(request) File "django/middleware/common.py", line 104, in get_full_path_with_slash 'url': request.get_host() + new_path,
Historique
Mis à jour par Lauréline Guérin il y a plus de 3 ans
- Projet changé de Suivi des traces à Chrono
être plus tolérant aux slash de fin d'url pour l'api ?
Mis à jour par Serghei Mihai il y a plus de 3 ans
Je pense qu'il s'agit d'une expérimentation d'Orléans: https://demarches-orleans.test.entrouvert.org/backoffice/workflows/133/status/98/items/2/
qui construit des URLs à la main, chose qu'on doit décourager.
Mis à jour par Valentin Deniaud il y a 5 mois
- Statut changé de Nouveau à Rejeté
L'autrice du ticket est d'accord que c'est pas bien de faire des URL à la main.