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存储桶中文文件名URL编码导致无法预览EPUB的问题 #6477

Open
4 tasks done
pengjianmim opened this issue May 20, 2024 · 3 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@pengjianmim
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.34.0

Driver used / 使用的存储驱动

对象存储 s3

Describe the bug / 问题描述

排查发现是response-content-disposition参数的问题

预览中文EPUB文件失败 参数为 attachment;%20filename*=UTF-8%27%27%E5%BA%86%E4%BD%99%E5%B9%B4.epub
image
预览英文EPUB文件成功 参数为 attachment;%20filename*=UTF-8%27%27qingyunuan.epub
image
使用下载功能时 参数为attachment%3B%20filename%2A%3DUTF-8%27%27%25E5%25BA%2586%25E4%25BD%2599%25E5%25B9%25B4.epub
image

Reproduction / 复现链接

中文EPUB文件

https://s3.example.com/%E5%85%B6%E4%BB%96/%E5%BA%86%E4%BD%99%E5%B9%B4.epub?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=23995b90b0f9e414106d941202a7e8c2/20240520/auto/s3/aws4_request&X-Amz-Date=20240520T080109Z&X-Amz-Expires=7200&X-Amz-SignedHeaders=host&response-content-disposition=attachment;%20filename*=UTF-8%27%27%E5%BA%86%E4%BD%99%E5%B9%B4.epub&X-Amz-Signature=5b07f92507553bf32e97a04d4ee3f20bae0ba029d311c08f2213e09f13834184

Config / 配置

使用cloudflare r2的对象存储服务 没有开启直链访问

Logs / 日志

No response

@pengjianmim pengjianmim added the bug Something isn't working label May 20, 2024
Copy link

welcome bot commented May 20, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@ricolxwz
Copy link

你能预览pdf吗, 我用s3没法预览pdf, 但是直接用s3的url预览是可以的.

@pengjianmim
Copy link
Author

你能预览pdf吗, 我用s3没法预览pdf, 但是直接用s3的url预览是可以的.

pdf可以正常预览 无论中文还是英文文件名

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants