Public bug reported: Missing either X-Auth-Token or X-Subject-Token in fernet token gives HTTP500 code. Can we have some other code but not 500?
stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:$T" -H "X-Auth-Token:" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:$T" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ echo $T gAAAAABVpo2eKVN7-auBJ1uAmwbEZtbvwZe7as4bJIr5BgXJaI8ocbkaCez2zqVGWyLiI36xZkT2JtVYf0swWOFRTSi3QG2vSQE7CFSNGId8UglOAssMhG8wAbsnAb2-SBjkuaP9eAC5 stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:" -H "X-Auth-Token:admintoken" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Auth-Token:admintoken" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} (keystone.common.wsgi): 2015-07-10 19:27:07,838 INFO wsgi __call__ DELETE /auth/tokens? (keystone.common.wsgi): 2015-07-10 19:27:07,840 ERROR wsgi __call__ 'NoneType' object has no attribute 'encode' Traceback (most recent call last): File "/opt/stack/service/keystone/venv/lib/python2.7/site-packages/keystone/common/wsgi.py", line 239, in __call__ result = method(context, **params) ** Affects: keystone Importance: Undecided Status: New ** Tags: fernet keystone -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Keystone. https://bugs.launchpad.net/bugs/1474942 Title: Missing either X-Auth-Token or X-Subject-Token in fernet token gives HTTP500 code. Status in Keystone: New Bug description: Missing either X-Auth-Token or X-Subject-Token in fernet token gives HTTP500 code. Can we have some other code but not 500? stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:$T" -H "X-Auth-Token:" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:$T" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ echo $T gAAAAABVpo2eKVN7-auBJ1uAmwbEZtbvwZe7as4bJIr5BgXJaI8ocbkaCez2zqVGWyLiI36xZkT2JtVYf0swWOFRTSi3QG2vSQE7CFSNGId8UglOAssMhG8wAbsnAb2-SBjkuaP9eAC5 stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Subject-Token:" -H "X-Auth-Token:admintoken" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ stack@PADAWANBASE-CCP-T1-M1-NETCLM:~$ curl -X GET -k -H "X-Auth-Token:admintoken" http://192.168.245.4:35357/v3/auth/tokens {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}} (keystone.common.wsgi): 2015-07-10 19:27:07,838 INFO wsgi __call__ DELETE /auth/tokens? (keystone.common.wsgi): 2015-07-10 19:27:07,840 ERROR wsgi __call__ 'NoneType' object has no attribute 'encode' Traceback (most recent call last): File "/opt/stack/service/keystone/venv/lib/python2.7/site-packages/keystone/common/wsgi.py", line 239, in __call__ result = method(context, **params) To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1474942/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

