Closed GoogleCodeExporter closed 8 years ago
The only thing I can think of is that most servers are rewriting the url from
dir to dir/ but it's not good to rely on that, this is definitely comparing the
wrong signature for what is requested.
Original comment by fpear...@gmail.com
on 30 May 2014 at 4:20
Hi,
At first about error, it seems S3 returns AccessDenied error by list bucket
request.
I think you should check ACL etc for this bucket.
And about "dir/" and "dir", the request for list bucket is url=xxxx/dir, and
prefix="" by s3fs.
I think this is best way for listing.
Although it is not to limited to list bucket request, the directory name on
S3(=object name) is not forced '/' charator for end of it's name.
So s3fs need to check the "dir" and "dir/" object name.
Regards,
Original comment by ggta...@gmail.com
on 2 Jun 2014 at 4:41
Apologies. The function is ListBucketRequest in curl.cpp
The url passed in is fine, but:
CalcSignature("GET", "", "", date, (resource + "/"))).c_str());
You calculate the signature of the URL + "/". Since you are unwilling to solve
this by adding the "/" can you solve it by removing this "/" instead?
Original comment by fpear...@gmail.com
on 5 Jun 2014 at 1:44
I can confirm that if the URL matches the Signature, I no longer get the
AccessDenied error.
Original comment by fpear...@gmail.com
on 5 Jun 2014 at 1:47
Hi, fpearson
I think that the calcurating signature with "(resource + "/")" in
S3fsCurl::ListBucketRequest() is correct.
If building signature without "/" for resource(which is the bucket name), we
get the response from s3 as "SignatureDoesNotMatch" error.
And the error message says that the signature should be including "/<bucket
name>/" for base string.
I think your first report which is "<Code>AccessDenied</Code>" means not
"SignatureDoesNotMatch".
So that it is not wrong signature.
I think your error maybe wrong accesskey/secretkey pair for s3 or not allowed
accessing the bucket.
Please check those, and if you can, please run s3fs with "-d"(, "-f") option.
Regards,
Original comment by ggta...@gmail.com
on 8 Jun 2014 at 2:07
Original issue reported on code.google.com by
fpear...@gmail.com
on 30 May 2014 at 5:37