-
Notifications
You must be signed in to change notification settings - Fork 33
PUTing a full object to a resumable session does not trigger after instructions #510
Copy link
Copy link
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
PUTing a full object to a resumable session does not trigger after instructions such as return-503-after-256K[1].
after instructions appear to apply to the next request[2].
Environment details
- Package version:
gcr.io/cloud-devrel-public-resources/storage-testbench:v0.36.0
Steps to reproduce
# start the container
docker run --rm -d --name repro gcr.io/cloud-devrel-public-resources/storage-testbench:v0.36.0
# create a bucket
xh --print=h :9000/storage/v1/b project==project-id name=bucket1
# create the resumable upload session
{ uploadId=$(xh --print=h POST :9000/upload/storage/v1/b/bucket1/o name==object1 uploadType==resumable | tee /dev/fd/3 | grep -i 'Location:' | cut -b11-) ; } 3>&1
# upload 768KiB of data and finalize the session
dd ibs=262144 count=3 if=/dev/urandom | xh --print=Hh PUT "$uploadId" Content-Range:'bytes 0-786431/786432' x-goog-emulator-instructions:return-503-after-256K
# stop the docker container
docker kill repro[1] https://gist.github.com/BenWhitehead/07b65f51ac6e0f6421d0a7f41a4d5433#file-01_result-txt-L12-L28
[2] https://gist.github.com/BenWhitehead/07b65f51ac6e0f6421d0a7f41a4d5433#file-02_result-txt-L38-L53
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.