Creating an endpoint with an invalid service_id returns the wrong error code

Bug #1362309 reported by David Stanek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Won't Fix
Wishlist
Unassigned

Bug Description

When creating or updating an endpoint with an invalid service_id specified the server returns a 404 instead of a 400. While it's true that the service can't be found, that's not the resource the client is attempting to access. This is misleading.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/117341

Changed in keystone:
assignee: nobody → David Stanek (dstanek)
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

We do this in a lot of places - role assignments, for example. While I agree the request was wrong, it'd be a big change to switch them all to 400's instead of 404's.

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Low
Changed in keystone:
importance: Low → Wishlist
Revision history for this message
Steve Martinelli (stevemar) wrote :

Automatically unassigning due to inactivity.

Changed in keystone:
assignee: David Stanek (dstanek) → nobody
status: In Progress → Triaged
Revision history for this message
Steve Martinelli (stevemar) wrote :

This would break backwards compatibility. See dolphs's comment in #2. We're stuck with 404's.

Changed in keystone:
status: Triaged → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/117341
Reason: no new patch in 1.5 years, and the bug is marked as WONTFIX. abandoning

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.