Bug 1348728 - [RFE] 404 authentication errors should indicate the failed url
Summary: [RFE] 404 authentication errors should indicate the failed url
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
Target Milestone: Upstream M2
: 12.0 (Pike)
Assignee: John Dennis
QA Contact: Prasanth Anbalagan
Depends On:
Blocks: 1194008 1295530 1442136
TreeView+ depends on / blocked
Reported: 2016-06-21 21:54 UTC by Chris Plock
Modified: 2018-02-05 19:02 UTC (History)
14 users (show)

Fixed In Version: openstack-keystone-11.0.1-0.20170403212501.1de8b9d.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-12-13 20:44:49 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Launchpad 1641231 0 None None None 2016-11-11 22:00:04 UTC
OpenStack gerrit 446720 0 None None None 2017-03-16 20:27:58 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Chris Plock 2016-06-21 21:54:20 UTC
Description of problem:
There is a catchall handler that doesn't provide helpful output when there is a configuration problem, catching HttpError specifically and providing the url would clarify many problems quickly.

Version-Release number of selected component (if applicable):
Any since icehouse

How reproducible:

Steps to Reproduce:
from keystoneclient.v2_0 import client as client_v2
client = client_v2.Client(username='admin', password='secrete', tenant_name='admin', auth_url=auth_url)
token = client.tokens.authenticate(username='admin', password='secrete', tenant_name='admin').token['id']
user_id = next(u.id for u in client.users.list() if u.username=='admin')
client = client_v2.Client(user_id=user_id, token=token, auth_url=auth_url)
client = client_v2.Client(user_id=user_id, token=token, auth_url=auth_url)

Actual results:
keystoneauth1.exceptions.auth.AuthorizationFailure: Authorization Failed: The resource could not be found. (HTTP 404)

Expected results:
keystoneauth1.exceptions.auth.AuthorizationFailure: Authorization Failed ( The resource could not be found. (HTTP 404)

Additional info:

Comment 2 Adam Young 2016-07-08 17:46:43 UTC
We will investigate, but the request seems sound.

Comment 5 Rob Crittenden 2017-04-25 15:15:02 UTC
Moving to POST, merged upstream on March 22.

Comment 10 errata-xmlrpc 2017-12-13 20:44:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.