You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
collaboration: GetFile still fails while postprocessing takes longer than the retries (e.g. virus scanning) #4107
With the fix for #4106, GetFile in the collaboration service retries the download while a new file version is still in postprocessing (425 Too Early), for up to 1.26 seconds in total. After that it answers 500, as it did before.
That covers servers where postprocessing finishes almost at once, like the WOPI validator setup in the CI. Servers that run postprocessing steps such as a virus scan can take several seconds or longer per file. There the retries run out, and an office app that opens or reloads a document right after someone else saved it still gets a 500 from GetFile.
How should GetFile handle a file that stays in postprocessing longer than that? Some options:
Wait longer, e.g. up to 5–10 seconds. Simple, but every such GetFile holds a request open in the collaboration service and in the office app for that long, and the office app may time out first.
Make the waiting time configurable, so that admins can match it to their postprocessing steps.
Answer with a status the office apps handle better than 500. The WOPI GetFile spec lists 401, 404, 409, 412, 500 and 501, and none of them means "try again later", so this needs checking against how Collabora, OnlyOffice and EuroOffice react.
Serve the previous version while the new one is in postprocessing. Probably wrong for an editor that just saved.
DeleteFile already retries a CODE_TOO_EARLY from the gateway, with waits that grow up to 5 seconds each and no limit on the number of retries. Whatever is decided here may apply there too.
Activity