ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.76k stars 1.08k forks source link

re-opening document gets warning 'The file version has been changed. The page will be reloaded' #1716

Closed tbswork1 closed 2 years ago

tbswork1 commented 2 years ago

Do you want to request a feature or report a bug? An issue when testing DocumentServer with our implementation of wopi server.

What is the current behavior? Re-open a document that just saved get warning message 'The file version has been changed. The page will be reloaded'.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Edit a document, close it and re-open it, the warning message shows up, and then the previous version is loaded and displayed in read-only mode (although the iframe posted the edit action url). Open the document locally with MS Office app and it has the latest modification.

https://api.onlyoffice.com/editors/troubleshooting mentioned this problem however it says ' every time the document is edited and saved, the [document.key] must be generated anew' which isn't helpful for wopi scenarios.

What is the expected behavior? Load the most updated version.

Did this work in previous versions of DocumentServer? don't know

DocumentServer version: 7.0.1

Operating System: Ubuntu 20.04

Browser version: Chrome 99.

igwyd commented 2 years ago

Hello @tbswork1, we had similar behavior in 7.0.1 and we will fix it in 7.1.0. Can you show locumenserver log with error?

tbswork1 commented 2 years ago

Here is the log from /var/log/onlyoffice/documentserver/docservice/out.log, if there is any related entries:

[2022-04-06T01:39:05.552] [WARN] nodeJS - downloadUrlPromise body size mismatch: uri=http://192.168.137.1/wopi/files/L2RvY3gvNDQ0NDQ0NGRmc2Rmcy5kb2N4?access_token=xxxxxxxx; content-length=162; body.length=244
[2022-04-06T01:39:34.433] [WARN] nodeJS - downloadUrlPromise body size mismatch: uri=http://192.168.137.1/wopi/files/L2RvY3gvTmV3IE5hbWVzLmRvY3g?access_token=xxxxxxxx; content-length=162; body.length=240
[2022-04-06T01:39:38.975] [WARN] nodeJS - UpdateVersion expired: docId = L2RvY3gvTmV3IE5hbWVzLmRvY3g
[2022-04-06T01:40:03.658] [WARN] nodeJS - downloadUrlPromise body size mismatch: uri=http://192.168.137.1/wopi/files/L2RvY3gvTmV3IE5hbWVzLmRvY3g?access_token=xxxxxxxx; content-length=162; body.length=240

This might not be a bug if it is file version related. Also the X-WOPI-ItemVersion header is not mentioned in MS's wopi spec.

Stanyer commented 2 years ago

This bug also exists in 6.4.2 and 7.0.0

Here is the out.log [2022-04-14T20:44:10.798] [WARN] nodeJS - Express server starting... [2022-04-14T20:44:10.800] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability [2022-04-14T20:44:10.855] [WARN] nodeJS - Express server listening on port 8000 in production-windows mode. Version: 7.0.0. Build: 132 [2022-04-15T08:32:43.008] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUVSV1ppcTJWbFNBbTQtcW10SkN4S05ESVNEZVoxT2tMWWhVZmtvU1dYamhIU1hfRjNhR2tWcnltdHFVMDFKWlRB_b03b850b28e696c16febb6842635c16b [2022-04-15T10:49:33.769] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUJjRVpTanFBVmFGbEltc21vaERrUFpCS1NMZVpGLWtLTjhFS1VsQkFpenRUWGFqUkhhQWtWanduTl9FZ1ZBT0h3_97d80be4f4952d8119c461175b980b68 [2022-04-15T11:14:28.722] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUJjRVpTanFBVmFGbEltc21vaERrUFpCS1NMZVpGLWtLTjhFS1VsQkFpenRUWGFqUkhhQWtWanduTl9FZ1ZBT0h3_97d80be4f4952d8119c461175b980b68 [2022-04-15T12:02:10.369] [WARN] nodeJS - error description: docId = VWd5VVJYVTU4U3VDOUJVQ09YbTNVUWJTbTlQOXpZZEhscTVHSlhIZE1WX3dlSWdDZlVrVUNTN3RUM1gtRm5DQ3hBXzF3WXpEMFZJUEZB_719c71825011582bf7a2e287990b7963 errorId = Update Version error [2022-04-15T14:56:27.902] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUVjRU5DX25VZ0xXeDRfN3lJQVVsdlVYY3lYY05sbnpmZGdFS3hzU0FpcmxFblQtRUhIWHdBdjV3SVRHMXdFTkdB_ec0ef7ed8ed5fbb892b6e35df444abbb [2022-04-15T14:57:53.642] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUVBR09DenFVQUxXbTluN3lJWVh3NkJGSm5HUE1WNmxmTmhSZmtwR0RpdTBTSFgtUm5HSHhRdjBtdDZUMWxKYUhB_a5196b6ee245adcf0d30a07cfb2032d1 [2022-04-15T15:08:18.414] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUVBR09DenFVQUxXbTluN3lJWVh3NkJGSm5HUE1WNmxmTmhSZmtwR0RpdTBTSFgtUm5HSHhRdjBtdDZUMWxKYUhB_a5196b6ee245adcf0d30a07cfb2032d1 [2022-04-15T15:11:05.240] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUJRSFlTemdCd09HbGQ2cWw0bEJrS1ZKYzNIVVlGeWdMTjVZZDA5R0FuN3RFaVh5RlNhQmxRT2duSXpCaGdaWkZB_ec0ef7ed8ed5fbb892b6e35df444abbb [2022-04-15T15:17:00.971] [WARN] nodeJS - error description: docId = VWd5VVJYVTU4U3VDOUVBR09DenFVQUxXbTluN3lJWVh3NkJGSm5HUE1WNmxmTmhSZmtwR0RpdTBTSFgtUm5HSHhRdjBtdDZUMWxKYUhB_a5196b6ee245adcf0d30a07cfb2032d1 errorId = Update Version error [2022-04-15T15:17:01.241] [WARN] nodeJS - error description: docId = VWd5VVJYVTU4U3VDOUVjRU5DX25VZ0xXeDRfN3lJQVVsdlVYY3lYY05sbnpmZGdFS3hzU0FpcmxFblQtRUhIWHdBdjV3SVRHMXdFTkdB_ec0ef7ed8ed5fbb892b6e35df444abbb errorId = Update Version error [2022-04-15T15:24:03.515] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUJaWE5YbXlBRlBSeHR1cXpZY1V4X1lRZGlmVlpGaWpMb2dFS2trVEFucXdFblgzUkhYVXdsNm55WTNIMGdWYlRB_612bc115305f8fccbc9482fa3ca60dac [2022-04-15T15:25:13.733] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUJRSFlTemdCd09HbGQ2cWw0bEJrS1ZKYzNIVVlGeWdMTjVZZDA5R0FuN3RFaVh5RlNhQmxRT2duSXpCaGdaWkZB_ec0ef7ed8ed5fbb892b6e35df444abbb [2022-04-15T15:36:25.590] [WARN] nodeJS - UpdateVersion expired: docId = VWd5VVJYVTU4U3VDOUVFR01paXlYRkdBd2Q3OGw5ZEd4S2RJZENMYU5RNmdlTjRGTGhvVERudTJTbkdrUkNIUWxnbnl3SWpEMWdaVVRn_ec0ef7ed8ed5fbb892b6e35df444abbb

Janeisme-lll commented 1 year ago

Hello, has this problem been solved? I am version 7.2.1, and still have this problem thanks

vitobotta commented 1 year ago

I am experiencing this issue as well with Seafile. Both are latest versions. Is there a fix or workaround?