CONAP-345422:当客户端在请求中发送编码URI字符时、签名版本v4请求失败、并出现签名不匹配错误。
问题描述
- Special characters needs to URI encoded(/ as %2F) and it should be used in the URL, but still some clients sends decoded values ("/")
- For example, the '/' character is a reserved character and it has a special meaning when being used in the prefix to separate the paths of a URL.
- Here it is used by encoding it to '%2F'.
- Below error will be seen:
- H "X-Amz-Content-Sha256: e4xsjdhbsj98fdsfdvcsdvndvfjnsjfvndfvbfaaaa"
- H "X-Amz-Date: 20241126T102448Z"
- H "Authorization: AWS4-HMAC-SHA256 Credential=XAAFEFHU78347328139AAA/20241126/ME2/s3/aws4_request, --cacert cert.pem
- Other clients, for example S3 browser or aws cli is not facing the issue.
- Working example from aws cli: