fog / fog-openstack

Fog for OpenStack Platform
MIT License
69 stars 130 forks source link

Swift: Allow 202 for large objects creation/update/copy #457

Closed gildub closed 6 years ago

gildub commented 6 years ago

Adds HTTP return code '202' (Accepted) for Container PUT and COPY requests.

OpenStack object storage API reference guide [1] implicitly mentions return code '202' is expected when dealing with large object for creation, update or copy [2].

[1] https://developer.openstack.org/api-ref/object-store/?expanded=copy-object-detail,create-or-replace-object-detail#create-or-update-object-metadata [2] https://docs.openstack.org/swift/latest/api/large_objects.html

Thanks to @NickLaMuro for reporting this issue.

theopenlab-ci[bot] commented 6 years ago

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

NickLaMuro commented 6 years ago

Awesome, thanks for doing this @gildub !

Also, really appreciate you finding documentation that shows I wasn't completely crazy! 😅👍

gildub commented 6 years ago

@NickLaMuro, you're welcome!

Also what is crazy is to have people to maintain such documentation where we could have it automated (Graphql for instance!) ;)