Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Signature error on non-special url-encoded characters s3 #89

Open
hodga opened this issue Dec 4, 2017 · 3 comments
Open

Signature error on non-special url-encoded characters s3 #89

hodga opened this issue Dec 4, 2017 · 3 comments

Comments

@hodga
Copy link

hodga commented Dec 4, 2017

To reproduce: try to put a file with the name a's.txt or something.

The ' character makes it give a signature error, but S3 should accept this character in file names.

Hopefully I did not miss anything in the docs, but with everything else being so straight forward i kind of expected this also to "just work" :)

@EECOLOR
Copy link
Member

EECOLOR commented Dec 6, 2017

Hey @hodga, in order for someone to more easily pick up this issue you should fork the repository and add a test case to https://github.com/kaliber-scala/play-s3/blob/master/src/test/scala/fly/play/aws/Aws4SignerSpec.scala

You are welcome to fix the the problem yourself and provide a pull request.

the documentation of the signing can be found here: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html

@hodga
Copy link
Author

hodga commented Dec 7, 2017

It seemed simple enough at first, turns out it wasn't, but here is a PR: #91

@hodga
Copy link
Author

hodga commented Dec 8, 2017

For people with the same issue the workaround is to encode the filename using AwsUrlEncoder.encodePath:

BucketFile(AwsUrlEncoder.encodePath("a's.txt"), _, _)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants