← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264476] Re: Add a duplicated member for image , return 204 " No Content"

 

Based on current v1 design, member add and update are sharing the same
code branch.

** 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/1264476

Title:
  Add a duplicated member for image , return 204 " No Content"

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

Bug description:
  Step:
  1) add member to an image id
  curl -i -H "X-Auth-Token:754ac1eb0fe340cf8dc6f7fa8be2a830" -X PUT http://127.0.0.1:9292/v1/images/883c1e0e-9248-4566-8f9d-e554790dfadd/members/222

  2)get members of image id
  curl -i -H "X-Auth-Token:754ac1eb0fe340cf8dc6fa830" -X GET http://127.0.0.1:9292/v1/images/883c1e0e-9248-4566-8f9d-e554790dfadd/members
  HTTP/1.1 200 OK
  Content-Type: application/json; charset=UTF-8
  Content-Length: 96
  X-Openstack-Request-Id: req-18cda5ff-2187-47ac-9ede-b8ea72a7ca73
  Date: Fri, 27 Dec 2013 09:28:36 GMT

  {"members": [{"can_share": false, "member_id": "23"}, {"can_share":
  false, "member_id": "222"}]}

  3)add the same member id to the image id,  renturn 204 "No Content":

  curl -i -H "X-Auth-Token:754ac1eb0fe340cf8dc6f7fa8be2a830" -X PUT http://127.0.0.1:9292/v1/images/883c1e0e-9248-4566-8f9d-e554790dfadd/members/222
  HTTP/1.1 204 No Content
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-70ef7c69-df63-4c8b-b68c-22c74f26eb8a
  Content-Length: 0
  Date: Fri, 27 Dec 2013 09:39:16 GMT

  if add duplicated member id  Why not reurn 409 "Conflict "?

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


References