Reviewed:  https://review.openstack.org/332950
Committed: 
https://git.openstack.org/cgit/openstack/glance/commit/?id=c028c2d23e3f32703f502e8919654df83f94e179
Submitter: Jenkins
Branch:    master

commit c028c2d23e3f32703f502e8919654df83f94e179
Author: bria4010 <brian.rosma...@rackspace.com>
Date:   Wed Jun 22 14:04:32 2016 -0400

    WADL to RST migration (part 2 - images)
    
    This brings the Images API Reference to the glance tree as part of the
    effort described here:
    https://wiki.openstack.org/wiki/Documentation/Migrate#API_Reference_Plan
    
    This patch contains the content of the Images v2 API reference converted
    to RST. The content has been corrected where I noticed divergences with
    reality (which actually happened a lot, so this patch contains a lot of
    revisions).
    
    Tasks and metadefs are submitted as separate patches.
    
    Change-Id: If69c469da7f28f090a2286ec0b115d9bcaac4fbf
    Closes-Bug: #1550457
    Closes-Bug: #1589264
    Closes-Bug: #1592715


** Changed in: glance
       Status: In Progress => Fix Released

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

Title:
  image member create fails when "member_id" is passed instead of
  "member" attribute in the request body

Status in Glance:
  Fix Released

Bug description:
  As mentioned in OpenStack API Complete Reference document [1] that the
  image member create accepts either the "member_id" or "member"
  attribute in the request body.

  When user creates the image member by using the "member_id" instead of
  "member" as attribute in request body then it fails with 400 bad
  request

  Steps to reproduce:

  $ curl -g -i -X POST 
http://172.26.88.24:9292/v2/images/e17dfe53-d492-47fb-b15b-409552199f7a/members 
-H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H 
    "X-Auth-Token: 9e2e32056c7c4e6a9628d3dcc5b74ead" -d '{"member_id": "xfgdf"}'

  Output:

  HTTP/1.1 400 Bad Request
  Content-Length: 54
  Content-Type: text/plain; charset=UTF-8
  X-Openstack-Request-Id: req-009f4b1f-7985-48d5-a627-18dc7f049cf8
  Date: Tue, 14 Jun 2016 13:00:28 GMT

  400 Bad Request

  Member to be added not specified

  [1] http://developer.openstack.org/api-ref-image-v2.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1592715/+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