mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #366] [MERGED] fix: timestamp format of getlastmodified in dav xml #585
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/366
Author: @tobyp
Created: 2/22/2024
Status: ✅ Merged
Merged: 2/22/2024
Merged by: @sigoden
Base:
main← Head:fix-getlastmodified-timestamp-format📝 Commits (1)
1dc0c21Fix timestamp format in "getlastmodified" timestamp property📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/server.rs(+1 -1)📄 Description
RFC4918 (WebDAV) requires the
getlastmodifiedproperty to be a date as returned in aLast-Modifiedheader. It also specifically references therfc1123-dateABNF definition (though confusingly, as defined in RFC 2616), which always ends inGMT.Note that HTTP/1.1 clients must accept timestamps as Dufs currently generates them, but servers are not allowed to generate them, and thus by reference, WebDAV servers can't either.
Unfortunately,
chronodoesn't have ato_rfc1123(orto_rfc2616) function, but all the parts are available viaformat.I discovered this via error messages produced by the DAVx5 Android App:
dav4jvm : [at.bitfire.dav4jvm.HttpUtils] Couldn't parse HTTP date: Wed, 21 Feb 2024 21:03:42 +0000, ignoring🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.