Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly detect EOL in chunked uploads #1837

Merged
merged 1 commit into from
May 3, 2024

Conversation

afranken
Copy link
Member

@afranken afranken commented May 3, 2024

Description

Even though the AWS documentation says that they always use "CRLF" as the EOL indicator, it seems to depend on the system when using async (native) clients.
Now, we use a BufferedReader to correctly detect and read full lines where we need to.

MultiPartUploadV2IT#testMultipartUpload_asyncClient failed when using a file >16KB before this fix, now it is successful.

Related Issue

Fixes #1818

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

@afranken afranken self-assigned this May 3, 2024
@afranken afranken added the bug label May 3, 2024
@afranken afranken force-pushed the 1818-correctly-detect-eol-in-chunked-uploads branch 2 times, most recently from d749826 to 8c93717 Compare May 3, 2024 09:03
Even though the AWS documentation says that they always use "CRLF" as
the EOL indicator, it seems to depend on the system when using async
(native) clients.
Now, we use a BufferedReader to correctly detect and read full lines
where we need to.

MultiPartUploadV2IT#testMultipartUpload_asyncClient failed when using
a file >16KB before this fix, now it is successful.

Fixes #1818
@afranken afranken force-pushed the 1818-correctly-detect-eol-in-chunked-uploads branch from 8c93717 to dc01aff Compare May 3, 2024 09:07
@afranken afranken merged commit 9d4585f into main May 3, 2024
6 checks passed
@afranken afranken deleted the 1818-correctly-detect-eol-in-chunked-uploads branch May 3, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant