mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[GH-ISSUE #263] One-too-many bytes returned when supplying a range header #55
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#55
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 @gh2k on GitHub (Jun 3, 2020).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/263
I think this was introduced by #255 (cc @chowey)
When calling fake-gcs from my tests, I am receiving one more byte than expected. This was working in version
1.18.4.For example, I have a range header that sets
bytes=0-8and it receives 10 bytes back...yields an error because the client receives
hello worl.@chowey commented on GitHub (Jun 3, 2020):
Strange. Do you have a complete test that I can see to reproduce this?
@fsouza commented on GitHub (Jun 3, 2020):
Hey @gh2k, sorry for moving from bug to question, just trying to gather some info here: what is
rp.getdoing with theRangeheader? Is it forwarding it as is?@gh2k commented on GitHub (Jun 9, 2020):
Ah, sorry. I had clearly not had enough coffee when I posted that. That's a snippet of an acceptance test that talks to my wrapper, which had been erroneously incrementing
endby 1, rather than the bit that talks to GCS. 🤦♂️My implementation actually matched the buggy behaviour of
fake-gcs-serverand so the fix broke my tests. I'd assumed my app was doing the right thing, but I think it is indeed returning one too many bytes when given a range.