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
Make a GET request w/ the header x_trusted_proxy set to a value that is malformed i.e. foo-bar
Expected
Not to get a 500
Actual
500
File "/awx_devel/awx/api/generics.py", line 164, in initialize_request
if validate_x_trusted_proxy_header(request.META['HTTP_X_TRUSTED_PROXY']):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/ansible_base/jwt_consumer/common/util.py", line 43, in validate_x_trusted_proxy_header
bytes.fromhex(signature),
^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: non-hexadecimal number found in fromhex() arg at position 2
Bug Summary
Steps to recreate
x_trusted_proxy
set to a value that is malformed i.e.foo-bar
Expected
Not to get a 500
Actual
500
More info
django-ansible-base/ansible_base/jwt_consumer/common/util.py
Line 43 in 01c7f98
The text was updated successfully, but these errors were encountered: