Owner change doesn't work in v2

Bug #1420008 reported by Feilong Wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Feilong Wang

Bug Description

v2 is incompatible with v1 for owner change

Need more test to confirm if it's still existing in master branch

Feilong Wang (flwang)
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
Revision history for this message
Louis Taylor (kragniz) wrote :

Confirmed on master.

$ glance --os-image-api-version 2 image-update 6b0fab13-503f-46fb-b04e-be750afc51f9 --owner alice
<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Attribute 'owner' is reserved.<br /><br />

 </body>
</html> (HTTP 403)

Changed in glance:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Feilong Wang (flwang) wrote :

Thanks, Louis.

Feilong Wang (flwang)
summary: - [stable/icehouse] Owner change doesn't work in v2
+ Owner change doesn't work in v2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: Confirmed → In Progress
Revision history for this message
David Moreau Simard (dmsimard) wrote :

Just for the record, this also prevents an image from being created with a specified owner - not just for image update.

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

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

commit 46666826c98915499e15572125798dcff3f69314
Author: Fei Long Wang <email address hidden>
Date: Wed Feb 11 00:53:56 2015 +1300

    Fix image owner can't be changed issue in v2

    It is incompatible with v1 for owner change in v2. Image owner
    should be able to be changed, and only by admin user. This patch
    fixes the issue and add some test cases for that.

    Closes-Bug: #1420008

    Change-Id: Ief9dc3329d7df07e1da32bb5ccc557096f73624f

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → liberty-3
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-3 → 11.0.0
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.