(Translated by https://www.hiragana.jp/)
目录中有中文名的文件导致s3客户端显示协议冲突 · Issue #18662 · Alluxio/alluxio · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中有ちゅううちゅう文名ぶんめいてきぶんけん导致s3きゃく户端显示协议冲突 #18662

Open
woodlyer opened this issue Jul 25, 2024 · 0 comments
Labels
type-bug This issue is about a bug

Comments

@woodlyer
Copy link

Alluxio Version:
What version of Alluxio are you using?
alluxio-2.9.5

Describe the bug
A clear and concise description of what the bug is.
当目とうめ中有ちゅううちゅう文名ぶんめいてきぶんけん时,S3きゃく户端连接うえ
原因げんいんふく务器输出てき content_length长度不正ふせい确,导致内容ないようしょう几个节,解析かいせきxmlしつ败。

the output is like this.
结尾てきListBucketResultかんせい

</ListBucketResult>
<ListBucketResult><version2>false</version2><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated>
<CommonPrefixes><Prefix>ccdata.tdf/</Prefix></CommonPrefixes>
<CommonPrefixes><Prefix>cn/</Prefix></CommonPrefixes>
<CommonPrefixes><Prefix>dir/</Prefix></CommonPrefixes><CommonPrefixes>
<Prefix>test.tdf/</Prefix></CommonPrefixes><Marker></Marker>
<Contents><LastModified>2024-07-25T10:43:29.657Z</LastModified><Key>123.txt</Key><Size>15</Size></Contents>
<Contents><LastModified>2024-07-18T17:13:50.054Z</LastModified><Key>123.txt.tdf</Key><Size>1793</Size></Contents>
<Contents><LastModified>2024-07-18T17:13:50.222Z</LastModified><Key>1m.txt.tdf</Key><Size>1050270</Size></Contents>
<Contents><LastModified>2024-07-25T10:46:55.835Z</LastModified><Key>副本ふくほん.txt</Key><Size>15</Size></Contents>
<Delimiter>/</Delimiter><Prefix></Prefix><Name>mnt</Name></ListBucketRes  <---------see this

ゆう一个文件的名字是"副本ふくほん.txt", utf-8 编码てき
输出てきxml内容ないようさとめんさいきさきてきかんせいしょうりょう4个字节。
原因げんいんhttp 头里めんてきcontent_length 实际内容ないようしょう4个字节。
为什么是4个字节呢? 推测ざい计算内容ないよう长度时,计算てきてき个数,“副本ふくほん”这个词长いたてき2,ただし实际じょう6(两个utf-8)てき长度,所以ゆえんしょうりょう4.
二进制可以看出来:
image

To Reproduce
Steps to reproduce the behavior (as minimally and precisely as possible)
搞一个中文放在目录里, ようs3协议访问,きゃく户端直接ちょくせつ报错。S3 Browser 11.7.5
协议冲突。 其实かえしかいてき内容ないようさいきさきめんかけ东西,解析かいせきしつ败。
image

Expected behavior
A clear and concise description of what you expected to happen.

Urgency
Describe the impact and urgency of the bug.

Are you planning to fix it
Please indicate if you are already working on a PR.
no

Additional context
Add any other context about the problem here.

@woodlyer woodlyer added the type-bug This issue is about a bug label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

No branches or pull requests

1 participant