ECS:使用安全字符时,S3 请求返回错误 403“签名不匹配错误”

Summary: S3 请求返回 HTTP 错误 403。正在使用正确的凭据。在对象名称中使用“安全”字符(如下划线)时出现错误 对文件名中的下划线进行编码时,签名不匹配错误 (403)。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

向 ECS 发送 PUT 请求,请求被拒绝显示 "403 - unauthorized"
对象名称包含 _ 下划线或其他安全字符。
GET 请求工作正常。
例如,当使用下划线时,来自“SAS Viya”应用程序的 PUT 请求会失败。

请求 403 签名不匹配错误示例:

2024-02-27 12:10:28,631 ac1f9511:189029ad365:357c84:389  123.45.xxx.xx:9021 172.31.xxx.xxx:9862 - htClient POST - sasviya-qa tmp_aaaaaaaa-bbbb-cccc-dddd-a3c2d3b40815_12345678.sashdat uploads HTTP/1.1 403 31 - - -1 - - - 123.xx.xx.xx 'X-Forwarded-For: 172.xx.xx.x'

svc_log确认这是签名不匹配:

svc_log -f "ac1f9511:189029ad365:357c84:389" -sr dataheadsvc -start 1d ago -sn -sf

169.254.1.2 2024-02-27T12:10:28,134 [qtp1758056339-124594-ac1f9511:189029ad365:357c84:389-s3-172.xx.xx.x] ERROR  S3V4Signer.java (line 302) Signature mismatch CalcSignature: 45753541dc729e7ebdbd2425e3a2fe8ab1f79f1e81b131409065e77f511e886b, ClientSignature: f5ed0ad93cdd67b58a1d93f24f0034b58e4bb29f0e54ecf6020db5b711ddba0a 

Cause

应用程序 URL 会先对所有请求进行编码,然后再将请求发送到目标服务器。因此,安全字符将替换为其 url 值,例如 _ 将替换为 %5F。 

Resolution

此问题已在版本 3.8.x 中得到修复。
升级后,必须设置一个参数以允许使用安全字符。请联系 戴尔支持 以设置此参数。

Additional Information

安全字符包括:
字母数字字符
  • 0-9

  • A-Z

  • A-Z

特殊字符
  • 感叹号 (!)

  • 连字符 (-)

  • 下划线 (_)

  • 句点 (.)

  • 星号 (*)

  • 单引号 (')

  • 左括号 (()

  • 右括号 ())

Affected Products

ECS

Products

ECS Appliance Hardware Gen3 EX5000, ECS Appliance, ECS Appliance Gen 1, ECS Appliance Gen 2, ECS Appliance Gen 3, ECS Appliance Hardware Gen3 EX300, ECS Appliance Hardware Gen3 EX3000, ECS Appliance Hardware Gen1 U-Series , ECS Appliance Hardware Gen1 C-Series, ECS Appliance Hardware Gen2 C-Series, ECS Appliance Hardware Gen2 D-Series, ECS Appliance Hardware Gen2 U-Series, ECS Appliance Hardware Gen3 EX500, ECS Appliance Hardware Gen3 EXF900, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption, ECS Software ...
Article Properties
Article Number: 000223857
Article Type: Solution
Last Modified: 10 Nov 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.