stable

Clone or download

Read-only

Drop strict restriction on the expected version that should be updated

Due to the async nature of the code we cannot really give feedback in a way that would allow the user to remediate the situation. Worst case scenario if another document has been uploaded in the meantime it will still be accessible via the logs/history. Part of story #28263: edit office document stored in Document Change-Id: I703ea313f7352910e6c87511c119afad713d22ab

Modified Files

Name
M plugins/onlyoffice/db/install.sql +1 −2 Go to diff View file
A plugins/onlyoffice/db/mysql/2022/202211031700_save_document_token_table_drop_version.php +39 −0 Go to diff View file
M plugins/onlyoffice/include/Save/NewFileVersionToCreate.php +0 −1 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeCallbackDocumentSaver.php +5 −15 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeSaveDocumentTokenDAO.php +4 −5 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeSaveDocumentTokenGeneratorDBStore.php +0 −1 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeSaveDocumentTokenVerifier.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/Save/SaveDocumentTokenData.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/integration/Save/OnlyOfficeSaveDocumentTokenDAOTest.php +4 −4 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackDocumentSaverTest.php +10 −29 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveControllerTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenGeneratorDBStoreTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenRefresherDBStoreTest.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenVerifierTest.php +3 −3 Go to diff View file