← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1442320] Re: Attempting to update/delete an image member from an image, passing a blank member_id returns a 404 response

 

The current behavior is correct and it need to stay as-is. Sending
following requests returns same message with 404 status code.

DELETE /v2/images/
PATCH /v2/images/
DELETE /v2/tasks/

When you are trying to create a new member for image and you won't
provide member_id that's correct to return 400 response, because
provided request is invalid (Bad Request). But if you want to delete a
member from image and you pass as member_id an empty string ('') the 404
is returned, as member with such id doesn't exist for given image.

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1442320

Title:
  Attempting to update/delete an image member from an image, passing a
  blank member_id returns a 404 response

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  Overview:
  When attempting to delete an image member passing a blank member_id, a 404 ("The resource could not be found") response is returned.

  Steps to reproduce:
  1) Create a new image
  2) Add an image member
  3) Attempt to delete the image member passing '' for the member_id
  4) Notice that a 404 response is returned

  Expected:
  Like the create image member response, if passing a blank member_id, a 400 ("Member can't be empty") response should be returned.

  Actual:
  A 404 ("The resource could not be found") response is returned

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


References