You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue where it appears that any data uploaded by the S3AsyncClient via PutObject is dropped if and only if the PutObject requests 1/ does not contain a content length in the top-level request 2/ the async request body does not contain a content length. As an example, any request submitted with AsyncRequestBody.fromPublisher will reflect (2).
Below is a snippet of test that reproduces the issue -- unfortunately I'm unable to post the full code. Note that I've run the same test 1/ against a real S3 endpoint 2/ with AsyncRequestBody.fromByteArray and both of those tests work. I'm using version 3.11.0.
Here are a few additional things I've tried, but which did not seem to fix the issue:
It looks like I had forgotten to enable the CRT-client's native multipart upload functionality when I ran the test against S3 mock but had it enabled when I ran the test against real S3. There's still a difference here in that with S3Mock the upload seems to silently drop data (as if content length was zero) instead of throwing an exception as real S3 does. The update to Tomcat appears to have fixed the other issues I was having so I'll close this one and leave a comment on the issue that already exists for that.
Hi,
I'm running into an issue where it appears that any data uploaded by the S3AsyncClient via PutObject is dropped if and only if the PutObject requests 1/ does not contain a content length in the top-level request 2/ the async request body does not contain a content length. As an example, any request submitted with AsyncRequestBody.fromPublisher will reflect (2).
Below is a snippet of test that reproduces the issue -- unfortunately I'm unable to post the full code. Note that I've run the same test 1/ against a real S3 endpoint 2/ with AsyncRequestBody.fromByteArray and both of those tests work. I'm using version 3.11.0.
Here are a few additional things I've tried, but which did not seem to fix the issue:
Please let me know if there's an issue in the code below or if you're able to look into this.
Thanks!
The text was updated successfully, but these errors were encountered: