亚马逊S3的Python S3Boto 403禁止当签名具有“+”号 [英] Amazon S3 Python S3Boto 403 Forbidden When Signature Has '+' sign
问题描述
我使用 Django的
和 S3Boto
,每当签名有一个'+'
标志中,我得到了 403禁止
。如果没有+
登录签名,我得到的资源就好了。可能是什么错在这里?
I am using Django
and S3Boto
and whenever a signature has a '+'
sign in it, I get a 403 Forbidden
. If there is no '+'
sign in the signature, I get the resource just fine. What could be wrong here?
更新:
回购是: https://github.com/boto/boto
有关文件是:
boto/utils.py
boto/s3/connection.py
注意: 我是很新的Python的。我试图修改code,但我仍然无法得到的编码处理得当。
NOTE: I am quite new to Python. I tried modifying the code but I still can't get the encoding done properly.
推荐答案
在简单地说,这个问题是不是在S3Boto但在一些呼吁引文结束后面的URL出现这种情况。
In a nutshell, the problem is not in S3Boto but in some call to "unquote" that happens later on the url.
我回答过类似的问题在这里:
I answered a similar question here:
<一个href="http://stackoverflow.com/questions/11820566/inconsistent-signaturedoesnotmatch-amazon-s3-with-django-pipeline-s3boto-and-st/12262106#comment16459418_12262106">Inconsistent SignatureDoesNotMatch亚马逊S3与Django的管道,s3boto和存储
请看看我的解决方案在那里。
Please check out my solution there.
这篇关于亚马逊S3的Python S3Boto 403禁止当签名具有“+”号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!