mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #419] String format of text files larger than 1400 bytes get mangled #82
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#82
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 @ChrisWhealy on GitHub (Feb 11, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/419
In Kotlin, if I stream a text file larger than 1400 bytes, then the string data becomes mangled and is no longer in US-ASCII format. If the file is up to 1400 bytes long, then everything works. If the file is 1401 bytes or more, then the data is mangled
Using version
latest, with the test code shown below, the variablebufferAsStringreceives���������R]o�@|����^���<"�4�R��UUe-�B�:��>����@P!R%�^��nf���%�10�uRqM�
�ϯ�~�s���A]$�2�=9R�F�V� �h1���4�rI܊-}�j���ЭI��%��V����VZ����s�j�ា$c��G0�ąi�d�8�I�T-�a=�0�E�z�5Sm�ZQRm4����iN������N�_ �faL��6�)J����;44����ŴD'm_�g��If I switch back to version
1.21.2, then it works fineCreate a test storage container
The test function then is
@fsouza commented on GitHub (Feb 11, 2021):
Oh interesting, thanks for reporting. I assume it has to do with gzip. Will investigate.
@fsouza commented on GitHub (Feb 15, 2021):
Hi @ChrisWhealy, I don't know much about Kotlin, but I assume using the Java sample provided by @dnatic09 in #142 should be equivalent here? (just need to write more data and try to read it)
Either way, I think this is related to gzipped responses, which is something we don't really have to support. Can you try your code with #426 (you should be able to checkout that PR locally then build it with
docker build -t fsouza/fake-gcs-server:some-tag ., then usesome-tagin yourTestGenericContainer).