You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining an error view for URLDecodeError will handle HTTP requests containing invalid Unicode characters, but if pyramid.debug_authorization is enabled in the application config file, a URLDecodeError is still raised on this line:
Defining an error view for URLDecodeError will handle HTTP requests containing invalid Unicode characters, but if
pyramid.debug_authorization
is enabled in the application config file, a URLDecodeError is still raised on this line:pyramid/src/pyramid/viewderivers.py
Line 366 in 3739a77
To reproduce, define an error view for URLDecodeError:
In the application config file, set
pyramid.debug_authorization = true
Make a request containing invalid unicode:
wget http://127.0.0.1:6543/%EF%BF
This will raise an exception and return a 500.
Repeating this with
pyramid.debug_authorization = false
will handle the exception properly and return a 400.The text was updated successfully, but these errors were encountered: