Incorrect handling of resumable upload responses without a range header #7835
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The client library treats 308 responses as an unrecoverable error:
google-cloud-cpp/google/cloud/storage/internal/retry_resumable_upload_session.cc
Line 76 in 49b5cc2
which can be triggered from here:
google-cloud-cpp/google/cloud/storage/internal/resumable_upload_session.cc
Lines 50 to 57 in 49b5cc2
However the spec allows for an empty range header:
https://cloud.google.com/storage/docs/performing-resumable-uploads
The text was updated successfully, but these errors were encountered: