Glance return 405 error when we try update element in bloblist

Bug #1491823 reported by Darja Shakhray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Won't Fix
Undecided
Kairat Kushaev

Bug Description

ENVIRONMENT: devstack, Glance (master, 03.09.2015)

STEPS TO REPRODUCE:
We have artifact:
{"description": null, "published_at": null, "tags": [], "created_at": "2015-09-02T09:29:27.000000", "type_name": "MyArtifact", "updated_at": "2015-09-02T09:29:27.000000", "visibility": "private", "id": "917ec8d2-44fb-4445-abb7-e28b65f7f07b", "type_version": "2.0", "state": "creating", "version": "12.0.0", "prop1": null, "prop2": null, "owner": "13db150f0268414ca7f2d81ea60a8205", "image_file": null, "deleted_at": null, "screenshots": [{"checksum": "db78f300f6509d4fc131cb4a23fd9356", "download_link": "/artifacts/myartifact/v2.0/917ec8d2-44fb-4445-abb7-e28b65f7f07b/screenshots/0/download", "size": 14}, {"checksum": "6807f2db24acbf20a715b41665c99a18", "download_link": "/artifacts/myartifact/v2.0/917ec8d2-44fb-4445-abb7-e28b65f7f07b/screenshots/1/download", "size": 14}, {"checksum": "db78f300f6509d4fc131cb4a23fd9356", "download_link": "/artifacts/myartifact/v2.0/917ec8d2-44fb-4445-abb7-e28b65f7f07b/screenshots/2/download", "size": 14}], "int_list": null, "name": "artifact1"}

Send request:
curl -H "X-Auth-Token: 3309284e1ff543e89ac57f9b0a643ad3" -H "Content-Type:octet-stream" -X PUT -d '{"data": "new_data"}' http://172.18.76.44:9292/v3/artifacts/myartifact/v2.0/917ec8d2-44fb-4445-abb7-e28b65f7f07b/screenshots/0 -i

EXPECTED RESULT:
status code 200 and update the element in screenshots

ACTUAL RESULT:
HTTP/1.1 405 Method Not Allowed
Content-Length: 187
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-ad97df1c-0fb6-4244-9ce6-6fada6bf38a7
Date: Thu, 03 Sep 2015 12:30:45 GMT

<html>
 <head>
  <title>405 Method Not Allowed</title>
 </head>
 <body>
  <h1>405 Method Not Allowed</h1>
  The method PUT is not allowed for this resource. <br /><br />

 </body>
</html>

Tags: artifacts
description: updated
Changed in glance:
assignee: nobody → Kairat Kushaev (kkushaev)
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/221046

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Glance Bot (<email address hidden>) on branch: master
Review: https://review.openstack.org/221046

Changed in glance:
status: In Progress → Won't Fix
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.