mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[GH-ISSUE #722] Size is not correctly returned after upload #122
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#122
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?
Originally created by @drigz on GitHub (Mar 18, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/722
I'm using the returned size to double-check the upload as we found some of our uploads were truncated and are trying to work out why. This works with GCS but breaks our tests. You can also see this by adding an additional assertion to upload_test.go:
I looked at sending a PR, but while it seems obvious how to set for most cases where ObjectAttrs{} is created when Content is already available, it wasn't obvious how to set it for a resumable upload.
@fsouza commented on GitHub (Mar 20, 2022):
Oh interesting. I'll investigate what's going on.
@fsouza commented on GitHub (Mar 20, 2022):
Thanks for providing the necessary test modification. Looks like we were incorrectly omitting that attribute, see #723. Once that's green, I'll merge it and cut a new release.