-
Notifications
You must be signed in to change notification settings - Fork 107
Unable to read files #10
Comments
@marad Can you provide more concrete & full code example for this failure? As I cannot reproduce this issue. |
Sure, I'll create small example code and send it here. |
@shuttie Ok, I've found the cause of my problems. In my code I need to create connection with: val clientConfig = new ClientConfiguration()
clientConfig.setSignerOverride("S3SignerType")
val client = new AmazonS3Client(credentials, clientConfig) And this signer override is causing the files to be empty. Is there a way to support other signing algorithms in s3mock? |
@shuttie The problem is, really that the files are stored empty in the temporary directory when putting objects. Setting signer type is one way to achieve this. I'm suspecting other ways but will investigate later. |
@marad, I had a similar problem using S3Mock for Presigned URLs. I originally used It turns out that |
We experience the same issue, caused by using |
The code expects the PUT payload after a chunk signature (example below). According to https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html this seems to be specific to V4. With V2 the client only sends the raw data, causing s3mock to fail because of the missing chunk signature. V4:
V2 is just The failing logic is in |
Trying to read file that I've just written to s3mock gives me empty
InputStream
.The text was updated successfully, but these errors were encountered: