Comment 2 for bug 1541594

Revision history for this message
Luke Wollney (luke-wollney) wrote :

Hey Stuart,

Here are some steps to reproduce:

1) Create/Import an image that contains a a valid owner id (it should be the id of the user that created/imported the image)

2) Update the image via the add operation, passing in the owner image property and a different (even randomly generated) id:
curl -i <endpoint>/v2/images/<image_id> -X PATCH -H "Content-Type: application/openstack-images-v2.1-json-patch" -H "Accept: application/json" -H "X-Auth-Token: <token>" -d '[{"path": "/owner", "value": "<random_owner_id>", "op": "add"}]'

3) Notice that a 404 response is returned:
404 Not Found
No image found with ID <image_id>

Hopefully this info helps. Thank you!