484e16e30c
webdav: keep X-OC-Mtime and report oc:checksums ( #13226 )
...
* webdav: keep X-OC-Mtime and report oc:checksums
ownCloud and Nextcloud sync clients, and rclone's webdav backend in those
vendor modes, send a file's modification time in X-OC-Mtime and read its
hash from the oc:checksums property. Without them every upload gets the
upload time as mtime and clients can only compare sizes, so syncs re-upload
unchanged files.
- PUT stores X-OC-Mtime (Unix seconds, fractions dropped) as the entry's
mtime, at create and at commit, and answers "X-OC-Mtime: accepted"
- a file created and written front to back stores its content MD5; any
other write clears it, so no stale MD5 outlives a partial rewrite
- PROPFIND reports oc:checksums ("MD5:<hex>") for files whose MD5 is known;
PROPPATCH is still refused
Checked with rclone (vendor=owncloud): sync keeps mtimes, md5sum matches
local files, including an 8-chunk file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* webdav: only report an inline MD5 for whole inline content; test commits
- contentMd5 hashes inline content only when it is the whole file
(filer.ETagOfInlineContent): content next to chunks, or shorter than the
file size, is only part of it and must not be advertised as its checksum
- test a PUT that crosses a buffer flush end to end: the committed entry
carries the X-OC-Mtime and the MD5 of the whole body
- test that writing into an existing file clears its stored MD5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* webdav: ignore a NaN X-OC-Mtime
int64 of NaN is implementation-specific (the most negative value on amd64,
the largest on riscv64), so a NaN header could store an arbitrary mtime.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* webdav: group the oc test imports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: Denis Maier <denis@dAir.lab >
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com >
2026-12-01 13:16:48 -08:00
..
2025-11-04 13:02:22 -08:00
2026-11-05 10:11:52 -08:00
2026-03-18 13:20:55 -07:00
2026-11-21 10:38:38 -08:00
2026-01-03 22:45:48 -08:00
2026-11-26 08:42:25 -08:00
2026-11-25 13:12:03 -08:00
2026-11-20 13:01:27 -08:00
2026-11-27 18:53:59 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-29 10:26:52 -08:00
2026-11-29 10:26:52 -08:00
2026-11-28 15:31:06 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-24 12:30:46 -08:00
2026-11-23 08:45:34 -08:00
2026-11-25 13:05:53 -08:00
2026-11-26 12:31:02 -08:00
2026-11-24 12:30:46 -08:00
2026-11-25 13:05:53 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 12:31:02 -08:00
2026-11-24 12:30:46 -08:00
2026-11-23 08:45:34 -08:00
2026-11-27 18:53:35 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 12:31:02 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-29 12:58:42 -08:00
2026-11-23 08:45:34 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 08:18:28 -08:00
2026-11-24 12:30:46 -08:00
2026-11-26 17:25:55 -08:00
2026-11-25 13:05:53 -08:00
2026-11-24 12:30:46 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 12:31:02 -08:00
2026-11-27 18:53:59 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 08:18:28 -08:00
2026-11-23 08:45:34 -08:00
2026-11-25 12:50:41 -08:00
2026-11-23 08:45:34 -08:00
2026-11-25 12:50:41 -08:00
2026-11-24 14:08:06 -08:00
2026-11-27 18:53:59 -08:00
2026-11-26 08:18:28 -08:00
2026-11-20 00:01:24 -08:00
2026-11-26 08:22:46 -08:00
2026-11-18 19:37:06 -08:00
2026-11-27 18:51:15 -08:00
2026-08-04 11:38:38 -07:00
2026-10-10 23:39:29 +08:00
2026-11-29 10:32:38 -08:00
2026-11-29 10:32:38 -08:00
2026-08-04 11:38:38 -07:00
2026-11-21 10:40:22 -08:00
2026-11-24 20:13:39 -08:00
2026-11-28 15:31:06 -08:00
2026-11-28 15:31:06 -08:00
2026-11-28 15:31:06 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 17:25:55 -08:00
2026-11-20 21:21:00 -08:00
2026-01-07 13:06:08 -08:00
2026-11-29 12:32:36 -08:00
2026-11-29 11:31:30 -08:00
2026-04-21 23:00:11 -07:00
2026-04-21 23:00:11 -07:00
2026-11-21 10:40:22 -08:00
2026-08-05 23:55:20 -07:00
2026-11-29 12:58:42 -08:00
2026-11-29 12:58:42 -08:00
2026-10-28 14:35:39 -07:00
2026-11-11 19:10:58 -08:00
2026-10-30 20:04:45 -07:00
2026-11-22 10:25:17 -08:00
2026-11-23 15:58:12 -08:00
2026-11-22 10:35:57 -08:00
2026-11-26 12:31:02 -08:00
2026-11-27 17:54:48 -08:00
2026-11-22 10:18:25 -08:00
2026-11-22 10:18:25 -08:00
2026-11-29 23:10:49 -08:00
2026-11-27 17:54:48 -08:00
2026-11-28 09:49:46 -08:00
2026-11-21 10:40:22 -08:00
2026-11-27 17:54:48 -08:00
2026-10-05 18:22:16 +08:00
2026-07-27 14:28:29 -07:00
2026-04-21 11:25:09 -07:00
2026-04-21 11:25:09 -07:00
2026-04-21 11:25:09 -07:00
2026-11-27 17:54:48 -08:00
2026-11-16 16:12:06 -08:00
2026-11-15 20:53:41 -08:00
2026-11-20 13:01:27 -08:00
2026-11-27 18:53:59 -08:00
2026-11-19 12:43:34 -08:00
2026-11-19 12:43:34 -08:00
2026-11-29 17:46:29 -08:00
2026-06-14 21:44:10 -07:00
2026-11-24 12:30:46 -08:00
2026-10-12 17:39:34 +08:00
2026-10-25 11:37:06 -07:00
2026-10-21 20:31:42 -07:00
2026-11-23 15:58:12 -08:00
2026-11-29 12:32:36 -08:00
2026-11-20 13:01:27 -08:00
2026-11-19 12:43:34 -08:00
2026-11-10 21:12:49 -08:00
2026-11-20 19:20:23 -08:00
2026-11-24 20:14:20 -08:00
2026-11-01 18:36:31 -08:00
2026-11-01 18:36:31 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-09-04 16:39:36 -07:00
2026-11-20 13:01:27 -08:00
2026-11-05 10:11:52 -08:00
2026-10-24 07:04:41 -07:00
2026-11-27 18:51:15 -08:00
2026-10-12 19:21:54 +08:00
2026-11-26 08:34:47 -08:00
2026-11-20 13:07:18 -08:00
2026-11-24 20:17:26 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:22:46 -08:00
2026-11-28 15:33:51 -08:00
2026-11-25 13:07:45 -08:00
2026-11-25 13:07:45 -08:00
2026-11-26 08:34:47 -08:00
2026-11-26 08:34:47 -08:00
2026-11-10 21:12:49 -08:00
2026-11-26 08:34:47 -08:00
2026-10-06 09:53:40 +08:00
2026-11-17 17:13:45 -08:00
2026-09-29 22:05:42 +08:00
2026-02-20 18:42:00 -08:00
2026-11-24 20:14:20 -08:00
2026-10-10 10:59:00 +08:00
2026-08-26 08:49:25 -07:00
2026-08-10 12:32:45 -07:00
2026-11-19 13:19:46 -08:00
2026-08-07 21:56:15 -07:00
2026-11-20 13:01:27 -08:00
2026-08-25 09:24:51 -07:00
2026-10-26 07:51:33 -07:00
2026-09-04 16:39:24 -07:00
2026-11-28 15:31:06 -08:00
2026-11-29 17:46:29 -08:00
2026-10-26 08:06:15 -07:00
2026-10-08 22:03:31 +08:00
2026-11-29 17:46:29 -08:00
2026-11-20 13:01:27 -08:00
2026-11-26 08:27:35 -08:00
2026-11-26 08:27:35 -08:00
2026-05-21 10:19:59 -07:00
2026-11-26 08:27:35 -08:00
2026-11-20 13:01:27 -08:00
2026-11-03 20:46:58 -08:00
2026-11-19 13:11:40 -08:00
2026-10-24 07:00:45 -07:00
2026-09-07 09:23:56 -07:00
2026-11-24 10:32:18 -08:00
2026-11-26 22:46:28 -08:00
2026-11-26 22:46:28 -08:00
2026-10-19 21:01:31 -07:00
2026-10-25 09:25:39 -07:00
2026-11-27 18:02:55 -08:00
2026-11-17 16:59:40 -08:00
2026-11-26 08:27:35 -08:00
2026-10-25 06:17:42 -07:00
2026-11-26 08:27:35 -08:00
2025-12-19 00:15:39 -08:00
2026-11-26 08:27:35 -08:00
2026-08-26 00:12:56 -07:00
2026-11-30 18:21:23 -08:00
2026-09-02 16:12:46 -07:00
2026-11-03 20:46:58 -08:00
2026-11-30 16:05:54 -08:00
2026-11-30 18:21:23 -08:00
2026-10-24 06:58:16 -07:00
2026-11-27 14:56:18 -08:00
2026-11-29 23:12:46 -08:00
2026-10-12 18:10:41 +08:00
2026-09-07 09:23:56 -07:00
2025-11-26 08:01:19 -08:00
2026-10-25 06:17:42 -07:00
2026-09-28 18:40:11 +08:00
2026-11-29 23:12:46 -08:00
2026-11-18 16:17:04 -08:00
2026-11-29 23:12:46 -08:00
2026-11-06 09:29:42 -08:00
2026-11-29 23:12:46 -08:00
2026-08-21 15:22:22 -07:00
2026-11-29 23:12:46 -08:00
2026-11-29 23:12:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-26 12:31:02 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-26 08:27:35 -08:00
2026-11-12 10:19:05 -08:00
2026-11-28 09:50:53 -08:00
2026-11-20 13:01:27 -08:00
2026-12-01 13:14:33 -08:00
2026-11-26 08:27:35 -08:00
2026-12-01 13:14:33 -08:00
2026-11-05 03:27:45 -08:00
2026-11-27 17:53:58 -08:00
2026-11-28 09:50:53 -08:00
2026-10-30 11:22:40 -07:00
2026-11-18 15:18:29 -08:00
2026-10-29 22:37:31 -07:00
2026-10-30 09:20:55 -07:00
2026-10-30 11:22:40 -07:00
2026-10-03 09:08:19 +08:00
2026-09-18 12:55:47 -07:00
2026-05-31 23:42:33 -07:00
2026-11-28 09:50:53 -08:00
2026-11-22 10:32:05 -08:00
2026-10-29 00:58:30 -07:00
2026-11-06 09:38:15 -08:00
2026-07-10 22:06:36 -07:00
2026-11-22 16:02:01 -08:00
2026-11-18 10:48:21 -08:00
2026-11-22 16:02:01 -08:00
2026-11-27 15:22:00 -08:00
2026-08-28 20:46:59 -07:00
2026-10-02 22:46:36 +08:00
2026-10-02 22:46:36 +08:00
2026-11-26 08:36:36 -08:00
2026-07-10 22:06:36 -07:00
2026-11-28 09:50:53 -08:00
2026-09-03 18:39:45 -07:00
2026-07-15 23:24:04 -07:00
2026-09-24 06:57:44 +08:00
2026-04-22 11:22:21 -07:00
2026-10-03 09:08:19 +08:00
2026-11-24 15:28:02 -08:00
2026-10-29 00:57:37 -07:00
2026-11-25 17:31:14 -08:00
2026-09-12 14:19:18 -07:00
2026-09-08 19:12:30 -07:00
2026-09-12 14:19:18 -07:00
2026-07-25 23:53:29 -07:00
2026-11-19 15:02:25 -08:00
2026-11-19 22:36:44 -08:00
2026-11-19 22:36:44 -08:00
2026-09-14 22:09:08 -07:00
2026-09-14 22:09:08 -07:00
2026-09-14 22:09:08 -07:00
2026-11-11 10:19:06 -08:00
2026-11-18 15:18:29 -08:00
2026-11-18 15:18:29 -08:00
2026-10-21 20:16:02 -07:00
2026-10-16 23:46:36 -07:00
2026-10-16 23:46:36 -07:00
2026-11-26 08:42:25 -08:00
2026-09-08 21:42:56 -07:00
2026-11-16 16:20:15 -08:00
2026-10-31 05:09:14 -07:00
2026-10-31 05:09:14 -07:00
2026-11-20 13:01:27 -08:00
2026-11-26 12:30:33 -08:00
2026-08-09 12:43:31 -07:00
2026-11-26 08:34:47 -08:00
2026-11-25 12:53:04 -08:00
2026-11-26 08:42:25 -08:00
2026-11-26 08:42:25 -08:00
2026-07-15 23:24:04 -07:00
2026-11-27 17:53:58 -08:00
2026-11-27 18:53:59 -08:00
2026-07-30 11:58:14 -07:00
2026-07-30 11:58:14 -07:00
2026-11-24 14:08:06 -08:00
2026-11-24 14:08:06 -08:00
2026-12-01 13:16:48 -08:00
2026-12-01 13:16:48 -08:00
2026-11-30 13:27:33 -08:00
2026-12-01 13:16:48 -08:00
2026-06-11 21:56:16 -07:00
2026-10-18 12:57:10 -07:00