delete_container doesn't provide arg for headers

Bug #1615830 reported by Ryan Brady
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Charles Hsu

Bug Description

Issue:

The usage of the swiftclient library is inconsistent due to lack of headers support.

The put_container method provides a 'headers' arg that allows you to pass headers through to the API.

The delete_container does not provide access to a 'headers' arg. This makes it difficult to send headers to middleware, e.g. trying to use bulk delete in swift middleware impossible with current swiftclient state.

Proposed solution:
Add headers arg to delete_container and update method to treat it similarly to the arg in put_container.

Changed in python-swiftclient:
status: New → Confirmed
assignee: nobody → Charles Hsu (charles0126)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/372656

Changed in python-swiftclient:
status: Confirmed → In Progress
Tim Burke (1-tim-z)
Changed in python-swiftclient:
status: In Progress → Confirmed
Changed in python-swiftclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/372656
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=6cf2bd6626df8e4c68bd5463d9b030e315f76b42
Submitter: Jenkins
Branch: master

commit 6cf2bd6626df8e4c68bd5463d9b030e315f76b42
Author: Charles Hsu <email address hidden>
Date: Mon Sep 19 23:18:18 2016 +0800

    Add additional headers for HEAD/GET/DELETE requests.

    Change-Id: I69276ba711057c122f97deac412e492e313c34dd
    Closes-Bug: 1615830

Changed in python-swiftclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-swiftclient 3.2.0

This issue was fixed in the openstack/python-swiftclient 3.2.0 release.

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.