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

[driver/onedrive] 覆盖上传大文件时会失败 #5217

Closed
4 tasks done
tcbx99 opened this issue Sep 13, 2023 · 2 comments · Fixed by #5218
Closed
4 tasks done

[driver/onedrive] 覆盖上传大文件时会失败 #5217

tcbx99 opened this issue Sep 13, 2023 · 2 comments · Fixed by #5218
Labels
bug Something isn't working
Milestone

Comments

@tcbx99
Copy link
Contributor

tcbx99 commented Sep 13, 2023

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.27.0

Driver used / 使用的存储驱动

onedriveAPP

Describe the bug / 问题描述

当用户尝试在 OneDrive 上分段上传一个已经存在的文件时,上传成功的响应状态码为 200 OK 而非 201 Created参见官方文档)。

然而,在 AList 的 OneDrive 驱动中(以 onedriveApp)为例,将 201 Created202 Accepted 之外的状态码均认为是失败的结果。我认为这导致了在覆盖大文件时会失败。

Reproduction / 复现链接

Config / 配置

无需提供。

Logs / 日志

ERRO[2023-09-13 23:17:05]/app/server/webdav.go:27 github.com/alist-org/alist/v3/server.WebDav.func1() PUT /dav/1drv/******* {"@odata.context":"___REDACTED___","@content.downloadUrl":"___REDACTED___","createdBy":{"application":{"id":"4*****2","displayName":"Alist"},"user":{"displayName":"SharePoint App"}},"createdDateTime":"2023-09-13T12:02:32Z","eTag":"___REDACTED___","id":"___REDACTED___","lastModifiedBy":{"application":{"id":"4*****2","displayName":"Alist"},"user":{"displayName":"SharePoint App"}},"lastModifiedDateTime":"___REDACTED___","name":"*****","parentReference":{"driveType":"business","driveId":"___REDACTED___","path":"___REDACTED___","siteId":"___REDACTED___"},"webUrl":"___REDACTED___","cTag":"___REDACTED___","file":{"hashes":{"quickXorHash":"___REDACTED___"},"irmEffectivelyEnabled":false,"irmEnabled":false,"mimeType":"application/octet-stream"},"fileSystemInfo":{"createdDateTime":"___REDACTED___","lastModifiedDateTime":"___REDACTED___"},"size":114514}
@tcbx99 tcbx99 added the bug Something isn't working label Sep 13, 2023
@welcome
Copy link

welcome bot commented Sep 13, 2023

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

@tcbx99 tcbx99 changed the title [drive/onedrive] 覆盖上传大文件时会失败 [driver/onedrive] 覆盖上传大文件时会失败 Sep 13, 2023
@tcbx99
Copy link
Contributor Author

tcbx99 commented Sep 13, 2023

#2000 出错的原因似乎跟我一样,也是在 WebDAV 下遇到 405 错误。

想要复现这个 Bug,需要覆盖一个 > 4M 的文件(也就是调用了 upBig() 函数)才行。

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

Successfully merging a pull request may close this issue.

2 participants