Skip to content

Conversation

@xrgzs
Copy link
Member

@xrgzs xrgzs commented Feb 1, 2026

Description / 描述

PROPFIND 遇到文件系统错误时返回错误,避免返回空文件夹。

Motivation and Context / 背景

How Has This Been Tested? / 测试

修改前,使用 rclone 同步时,如果源存储出错,会返回空文件夹,被 rclone 判断为目标文件不存在,导致反复上传,修改后能够被正确视为错误并在程序内部自动进行指数退避处理

TODO:

需要确定:

  • 是否影响 HTTP 207 Multi-Status是否会影响其它客户端
    已知问题:返回空文件夹在部分软件中不会报错,返回错误会弹窗,但个人认为错误弹窗是正确的表现

  • 错误代码返回 500 还是 405

  • 对齐 golang.org/x/net/webdav 的 handlePropfindError

Checklist / 检查清单

  • I have read the CONTRIBUTING document.
    我已阅读 CONTRIBUTING 文档。
  • I have formatted my code with go fmt or prettier.
    我已使用 go fmtprettier 格式化提交的代码。
  • I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
    我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
  • I have requested review from relevant code authors using the "Request review" feature when applicable.
    我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
  • I have updated the repository accordingly (If it’s needed).
    我已相应更新了相关仓库(若适用)。

@xrgzs xrgzs added bug Module: Server API and protocol changes labels Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Module: Server API and protocol changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant