← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1443563] [NEW] Updating an image by removing 'id', 'file', 'location', 'schema', or 'self' returns a 409 response

 

Public bug reported:

Overview:
When a user attempts to update an image by removing 'id', 'file', 'location', 'schema', or 'self' as an image property, a 409 response is returned even though every image has each of them by default.

Steps to reproduce:
1) Create an image
2) Update the image via PATCH /images/<id> passing '[{"path": "/id", "value": "<created_image_id>", "op": "remove"}]'
3) Notice that a 409 accepted response is returned

Expected:
A 403 response should be returned

Actual:
A 409 response is returned

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  Updating an image by removing 'id', 'file', 'location', 'schema', or
  'self' returns a 409 response

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Overview:
  When a user attempts to update an image by removing 'id', 'file', 'location', 'schema', or 'self' as an image property, a 409 response is returned even though every image has each of them by default.

  Steps to reproduce:
  1) Create an image
  2) Update the image via PATCH /images/<id> passing '[{"path": "/id", "value": "<created_image_id>", "op": "remove"}]'
  3) Notice that a 409 accepted response is returned

  Expected:
  A 403 response should be returned

  Actual:
  A 409 response is returned

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1443563/+subscriptions


Follow ups

References