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

最近上传的EPUB文件无法通过AJAX请求得到返回,会被阿里云服务器判定为403 (Forbidden) #6471

Closed
4 tasks done
Yang-Qinghuayi opened this issue May 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Yang-Qinghuayi
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 / 使用的存储驱动

阿里云盘Open

Describe the bug / 问题描述

我发现最新上传的EPUB文件, 通过阿里云盘的API获得的raw_url,经该url发起请求无法获得返回,具体情况是阿里云服务器会返回403 (Forbidden)

image

我已经控制变量,尝试过重新获得刷新token并登录, 情况依旧
我尝试过预览曾经上传的EPUB文件, 预览没有问题,说明是最近上传的EPUB文件会有这种问题
我尝试过上传epub之外的其他文件例如TXT,MP3,预览都没问题,说明这是针对EPUB文件的BUG
我尝试过在浏览器直接访问raw_url链接,可以直接下载文件
我尝试过用node发起请求,同样无法解决, 应该不是跨域问题

总结来说就是最近上传的EPUB文件无法通过AJAX请求得到返回,会被阿里云服务器判定为403 (Forbidden)

Reproduction / 复现链接

https://cn-beijing-data.aliyundrive.net/5fb4dd291a33c65e044247689009d48bdcdd1a90/5fb4dd2983c626d4ef184e9ca4a9b44eb8e6da1f?callback=eyJjYWxsYmFja1VybCI6Imh0dHA6Ly9iajI5LmFwaS1ocC5hbGl5dW5wZHMuY29tL3YyL2ZpbGUvZG93bmxvYWRfY2FsbGJhY2siLCJjYWxsYmFja0JvZHkiOiJodHRwSGVhZGVyLnJhb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-Library%29.epub&security-token=CAISvgJ1q6Ft5B2yfSjIr5f/L4ngrIhR9aq5R3/AqFkyY/tD2pDYijz2IHhMf3NpBOkZvvQ1lGlU6/calq5rR4QAXlDfNWm5fFDGqFHPWZHInuDox55m4cTXNAr+Ihr/29CoEIedZdjBe/CrRknZnytou9XTfimjWFrXWv/gy+QQDLItUxK/cCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41Uh1jgjtPzkkpfFtkGF1GeXkLFF+97DRbG/dNRpMZtFVNO44fd7bKKp0lQLs0ARrv4r1fMUqW2X543AUgFLhy2KKMPY99xpFgh9a7j0iCbSGyUu/hcRm5sw9+yfo34lVYneA5mMyRXH64IClLcc+mqdsRIvJzWstJ7Gf9LWqChvSgk4TxhhcNFKSTQrInFCB0+cRObJl16ihYKwbfXtuMkagAEV7eyIxLIIIgEWU7Z7xu8OxqoYXjAupRfarBLY8KUTmaSTaJzNMTl3TjCMxmlv6LGuuvjzm6f/6nta1mkyhok+SxCjdlpc5gKHQfBXo74YrfoaJkUiRlqmgqc7rONNZSB3jGV6AUJYLsWeYYaPKdfqrL/K6fIMlYNLEjrKnS1mNyAA&u=ab5e50933819417f8f6a70c227640125&x-oss-access-key-id=STS.NTJd3TAWpBhREYqLYgoto5Ush&x-oss-expires=1716082904&x-oss-signature=nJ3PG3F8PLdROai2IDdH8u4/drKRWCcBvLJSgQKVabQ=&x-oss-signature-version=OSS2

Config / 配置

image
image
image

Logs / 日志

image

@Yang-Qinghuayi Yang-Qinghuayi added the bug Something isn't working label May 19, 2024
Copy link

welcome bot commented May 19, 2024

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

@Yang-Qinghuayi
Copy link
Author

问题在于开发组正在开发epub解析器,但是目前还没有完成,所以是把原本需要被代理处理的链接没有经过处理就作为参数传给了内嵌iframe来实现epub的解析,这就造成了开发过程中偏偏epub文件没有走代理而无法使用了

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

1 participant