mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#660
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/497
Author: @dpoetzsch
Created: 5/18/2021
Status: ✅ Merged
Merged: 5/19/2021
Merged by: @fsouza
Base:
main← Head:iss346📝 Commits (2)
d1a2e72fixed https://github.com/fsouza/fake-gcs-server/issues/346b606b19simplified📊 Changes
2 files changed (+17 additions, -6 deletions)
View changed files
📝
fakestorage/upload.go(+13 -6)📝
fakestorage/upload_test.go(+4 -0)📄 Description
As https://github.com/fsouza/fake-gcs-server/issues/346 states, there is a bug when uploading files with the nodeJS client lib.
I debugged it and the problem is, that nodeJS sends
Content-Range: bytes 0-*/*(see https://github.com/googleapis/gcs-resumable-upload/blob/master/src/index.ts#L456).I could not really find a good documentation on the exact semantics but from observing the client lib I guess it means "start and end upload stream with all the data I provide you". I adjusted the code accordingly and added a test case. I also checked that the following node example works fine:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.