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

含特殊字符的文件名的文件无法读写 #527

Closed
OpenSourceUser2021 opened this issue Feb 11, 2022 · 10 comments
Closed

含特殊字符的文件名的文件无法读写 #527

OpenSourceUser2021 opened this issue Feb 11, 2022 · 10 comments

Comments

@OpenSourceUser2021
Copy link

OpenSourceUser2021 commented Feb 11, 2022

Alist Version / Alist 版本

2.0.9

Describe the bug / 问题描述

创建一个 文件名为 abc+=!.txt的 文件 会发现无法上传成功,用天翼APP 则正常,同时 alist 也无法下载

image

强行打开网盘文件abc =!.txt,发现alist会创建一堆文件
image

Reproduction / 复现链接

No response

日志 / Logs

No response

@OpenSourceUser2021
Copy link
Author

OpenSourceUser2021 commented Feb 11, 2022

结果就是NAS 同步到天翼永远无法100% 完成,到99% 提示错误,总有些文件反复上传就是不成功。

abc&.txt abc+.txt 异常
abc=.txt 成功

@xhofe
Copy link
Member

xhofe commented Feb 12, 2022

387e8af

@xhofe
Copy link
Member

xhofe commented Feb 12, 2022

强行打开网盘文件abc =!.txt,发现alist会创建一堆文件

无法复现

@OpenSourceUser2021
Copy link
Author

OpenSourceUser2021 commented Feb 12, 2022

带+ 号的文件 还是不行,到网盘里+ 号被删掉了 (abc+.txt -> abc .txt),网盘文件也打不开, & 号的已修复

387e8af

@xhofe
Copy link
Member

xhofe commented Feb 12, 2022

+号可以重新拉取代码,天翼云盘网盘文件打不开是因为302后携带了Authorization头导致400,如果你使用最新的dev分支,可以尝试打开webdav代理。

@OpenSourceUser2021
Copy link
Author

OpenSourceUser2021 commented Feb 12, 2022

+号 已解 ,代理开了还是打不开,下载不下来
image

@xhofe
Copy link
Member

xhofe commented Feb 12, 2022

我没有nas 使用的是raidrive,暂时webdav代理的下载还是302的网页端的代理链接,所以需要客户端支持302跟随。

关于单独的webdav代理还需要重构一下代码。

@OpenSourceUser2021
Copy link
Author

我用winscp测试的
image

另外%号看看要不要处理下

@xhofe
Copy link
Member

xhofe commented Feb 12, 2022

#302 winscp好像不支持

奇怪的字符太多了,测试直接QueryEscape也不行,你可以测试一下吧不支持的字符都列出来,我逐个转义。

@OpenSourceUser2021
Copy link
Author

换raidrive 不开代理也没问题了,

我手上几百GB 文件 没有其他特殊字符了。

xhofe added a commit that referenced this issue Feb 13, 2022
@xhofe xhofe closed this as completed in 5c42354 Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants