Closed emergentcomplex closed 3 months ago
Here's the section on spaces https://docs.digitalocean.com/reference/api/spaces-api/#authentication which goes over signatures. It claims both v4 and v2 are supported.
I've confirmed large files work OK with the latest AWS SDK for Java. Works with Python and Java with Spaces. Won't work with Kotlin :man_shrugging:
AWS SDK for Kotlin uses SigV4 for signing, so I don't think that's an issue.
We enable aws-chunked encoding by default for large S3 requests. It's possible Digital Ocean Spaces doesn't support that, so can you try disabling it by setting enableAwsChunked = false
on the S3Client? Let me know if that fixes your issue.
Confirming
S3Client {
enableAwsChunked = false
Did the trick :rainbow: thank you
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I'm attempting to use Digital Ocean Spaces (ceph-backed storage). It's supposed to be S3 compatible. I can put objects smaller than ~2MB. Any objects over that size will error out.
Expected behavior
I expect object under 5GB to successfully upload to spaces using this sdk and give a 201 response.
Current behavior
500 response code error. The actual output message is:
Steps to Reproduce
I ran this file in IntelliJ. It's a simplified version of what was failing in my KMM project. Same failure in this code. Will work with boto3 python aws sdk to Spaces with large file -- verified.
Possible Solution
It seems something is off with how the signature is calculated. I noticed there is a v2 and v4 out in the wild. There was mentioning of a shifting protocols with amazon. Perhaps this needs to be handled differently for DO Spaces?
Context
OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-1) IntelliJ IDEA Ultimate 2024.1.4
AWS SDK for Kotlin version
Platform (JVM/JS/Native)
Operating system and version
Ubuntu 24.04LTS