From 15ad13be2f246edc8d899983bbcd3dc321bad9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 30 Nov 2026 12:35:19 +0100 Subject: [PATCH] docs(policies): do not blame concatenation for the postprocessing check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The README claimed that the TUS concatenation extension can merge several smaller uploads into one file. The posix and decomposed drivers cannot do that: tusd creates the final upload with NewUpload, which they do not implement, because uploads have to be started with InitiateUpload via ocdav. Checking the actual size in postprocessing is still useful as a safety net, the early check only sees what the client declares. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer --- services/policies/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/policies/README.md b/services/policies/README.md index 3929913b5e..05fd46f007 100644 --- a/services/policies/README.md +++ b/services/policies/README.md @@ -220,7 +220,7 @@ granted = false if { Some WebDAV clients stream uploads with chunked transfer encoding, so such a rule rejects their uploads. A PATCH does not need it, the TUS server does not accept more data than the declared `Upload-Length`. -This is only an early check. The TUS concatenation extension can merge several smaller uploads into one file, so the actual file size has to be checked in postprocessing using `input.resource.size`. +This is only an early check based on what the client declares. To check the actual size of the file that was written, use `input.resource.size` in postprocessing. ## Rego Extensions