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

webdav 使用的 ctime 不应该默认为 now #6371

Closed
4 tasks
potoo0 opened this issue Apr 20, 2024 · 0 comments
Closed
4 tasks

webdav 使用的 ctime 不应该默认为 now #6371

potoo0 opened this issue Apr 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@potoo0
Copy link
Contributor

potoo0 commented Apr 20, 2024

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

理由:
目前支持 webdav 流行的网盘都是只要一个 mtime,所以 webdav 应该解析 mtime,但是 ctime 并没有被广泛使用,webdav 客户端也很少传这个字段,而代码里 server/webdav/util.getCreateTime 解析 ctime 会默认成 now,这会造成 mtime < ctime(文件在创建之前被修改),与概念不符合,建议 ctime 默认值是 mtime, 保证 mtime >= ctime

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@potoo0 potoo0 added the enhancement New feature or request label Apr 20, 2024
@xhofe xhofe closed this as completed in 479fc6d Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant