← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1971521] Re: Correction in response code for PUT /v2/cache/{image_id} API

 

Reviewed:  https://review.opendev.org/c/openstack/glance/+/840409
Committed: https://opendev.org/openstack/glance/commit/ecb040c17786fa28d521a247c556a99442e37d5f
Submitter: "Zuul (22348)"
Branch:    master

commit ecb040c17786fa28d521a247c556a99442e37d5f
Author: Abhishek Kekane <akekane@xxxxxxxxxx>
Date:   Wed May 4 05:41:56 2022 +0000

    [APIImpact] Correct API response code for PUT /v2/cache/{image_id}
    
    PUT /v2/cache/{image_id} returns HTTP 200 response code to user but as per
    proposal it should be HTTP 202. This change returns HTTP 202 response to
    user.
    
    Closes-Bug: #1971521
    Change-Id: I6a875a38bef5beafe352ab3320f3fd199db89aa1


** Changed in: glance
       Status: In Progress => Fix Released

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

Title:
  Correction in response code for PUT /v2/cache/{image_id} API

Status in Glance:
  Fix Released

Bug description:
  The newly added cache API ``PUT /v2/cache/{image_id}`` returns http
  200 response to user whereas as per the original proposal [1] it
  should have been http 202.

  [1] https://opendev.org/openstack/glance-
  specs/blame/commit/2638ada23d92f714f54b71db00330e4a6c921beb/specs/xena/approved/glance/cache-
  api.rst#L153

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



References