Files
Lukas Hirt 63fced12a6 fix(collaboration): retry rename and upload while file is processing (#13141)
* fix(collaboration): retry rename and upload while file is processing

RenameFile and PutFile failed with a 500 when the storage answered with CODE_TOO_EARLY because the file was still in postprocessing, e.g. right after PutRelativeFile. This made the wopi-builtin validator flaky. Share the retry-with-backoff logic that DeleteFile already had and apply it to Move and InitiateFileUpload as well. The retries are now bounded.

Signed-off-by: Lukas Hirt <info@hirt.cz>

* fix(collaboration): return context error when retry is cancelled

Return ctx.Err() from retryWhileTooEarly when the context is cancelled, document the intentional no-op after the wait, and add a test for it.

Signed-off-by: Lukas Hirt <info@hirt.cz>

---------

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-10-15 16:41:05 +02:00
..
2024-08-30 16:20:04 +02:00
2026-06-19 10:43:41 +02:00
2026-06-19 10:43:41 +02:00
2024-11-21 17:56:31 +01:00