Public bug reported:

Version: glance liberty master (latest 04.09.15)
Steps to reproduce:
1. Create an artifact(type=MyArtifact) with blob property (image_file)
2. Update blob property image_file with some value:
curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X POST -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
3. Request blob property replace:
curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X PUT -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
AR: 405 Method not allowed
ER: 200 OK

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: artifacts

** Description changed:

  Version: glance liberty master (latest 04.09.15)
  Steps to reproduce:
  1. Create an artifact(type=MyArtifact) with blob property (image_file)
  2. Update blob property image_file with some value:
  curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X POST -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
  3. Request blob property replace:
  curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X PUT -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
  AR: 405 Method not allowed
- ER: 200
+ ER: 200 OK

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

Title:
  Glance doesn't replace blob property correctly in artifacts

Status in Glance:
  New

Bug description:
  Version: glance liberty master (latest 04.09.15)
  Steps to reproduce:
  1. Create an artifact(type=MyArtifact) with blob property (image_file)
  2. Update blob property image_file with some value:
  curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X POST -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
  3. Request blob property replace:
  curl -H "X-Auth-Token: 6b2e3dccf35642b89099465e7492a42a" -H 
"Content-Type:application/octet-stream" -X PUT -d '{"data": 
"someupdates_datawithtretrtrt"}' 
http://127.0.0.1:9292/v3/artifacts/myartifact/v2.0/e4e58687-dbb9-4fa2-af53-b4addc15bc99/image_file
 -i
  AR: 405 Method not allowed
  ER: 200 OK

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