The URL supplied is invalid if /tenant_id/servers/{server_id} does not
exist because server_id is not a valid server id. So 404 is the
appropriate response code.


** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1298771

Title:
  GET /servers/​{server_id}​ should return 400 on invalid server_id but
  returns 404

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Currently,

  Call to GET /${tenant_id}/servers/${server_id} validates the server_id
  (uuid_like/int_like) and if found invalid, returns a 404 with
  ''Instance could not be found'' message.

  On invalid server_id, it should return 400 (Bad Request) with the
  message like "Invalid server_id"

  more info:
  ref: https://review.openstack.org/#/c/72637/13/nova/compute/api.py

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1298771/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to