Project

General

Profile

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...

Added by sentry io 15 days ago. Updated 15 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12 Jan 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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&timestamp=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,

History

#1

Updated by Lauréline Guerin 15 days ago

  • Project changed from Suivi des traces to Chrono

être plus tolérant aux slash de fin d'url pour l'api ?

#2

Updated by Serghei Mihai 15 days ago

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.

Also available in: Atom PDF