Amazon S3 Python S3Boto 403禁止当签名有'+'号 [英] Amazon S3 Python S3Boto 403 Forbidden When Signature Has '+' sign

查看:332
本文介绍了Amazon S3 Python S3Boto 403禁止当签名有'+'号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Django S3Boto ,每当签名有一个'+' 登录,我得到一个 403 Forbidden 。如果没有'+'登录签名,我得到的资源很好。这可能是错误的?

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很新我尝试修改代码,但仍然无法正确地获得编码。

NOTE: I am quite new to Python. I tried modifying the code but I still can't get the encoding done properly.

推荐答案

简而言之,问题不在在S3Boto中,但在某些呼叫unquote发生在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:

不一致的SignatureDoesNotMatch Amazon S3与django管道,s3boto和存储

请查看我的解决方案。

这篇关于Amazon S3 Python S3Boto 403禁止当签名有'+'号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆