swiftclient should check response before upload
Bug #1298283 reported by
Amala Basha
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
In Progress
|
Undecided
|
Amala Basha |
Bug Description
Scenario:
1. swiftclient receives a request to upload an image
2. swiftclient obtains an auth token
3. upload of the image commences are multiple chunks.
4. mid way the orignal auth token expires.
5. swiftclient attempts to upload the next chunk with the same auth token
6. Upload fails with a 401 after attempting to upload the entire chunk.
Proposed solution:
1. Fire a HEAD call before the actual PUT call with the same headers.
2. If the status returned is a 401, refetch the auth token and retry.
3. Upload the remaining chunks with the new token.
Changed in python-swiftclient: | |
assignee: | nobody → Amala Basha (amalabasha) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/83330
Review: https:/