The problem had been fixed by changing the way to call OnlyOffice in Seafile and config OnlyOffice properly. 7.0.5 version contains the fix.
You can find more information here: https://download.seafile.com/published/seafile-manual/deploy/only_office.md
