stable

Clone or download

Read-only

chore: request #39729 Use UUID instead of an auto-incremented INT in plugin_onlyoffice_document_server table

No functional changes expected. In order to simplify the migration process, a workaroung to handle a behavior change of the token used when saving the document has been dropped. It was first introduced in Tuleap 14.4 and the tokens are short lived. Change-Id: I6c148f45ffe67124c7b0150b52426b1b6f1933d7

Modified Files

Name
M plugins/onlyoffice/db/install.sql +4 −4 Go to diff View file
A plugins/onlyoffice/db/mysql/2024/202409271730_use_uuid_document_server.php +59 −0 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeDeleteAdminSettingsController.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeRestrictAdminSettingsController.php +4 −3 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeServerPresenter.php +7 −4 Go to diff View file
M plugins/onlyoffice/include/Administration/OnlyOfficeUpdateAdminSettingsController.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/DocumentServer.php +5 −4 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/DocumentServerDao.php +71 −49 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/IDeleteDocumentServer.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/IRestrictDocumentServer.php +4 −2 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/IRetrieveDocumentServers.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/DocumentServer/IUpdateDocumentServer.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/Save/DocumentServerForSaveDocumentTokenRetriever.php +1 −21 Go to diff View file
D plugins/onlyoffice/include/Save/NoDocumentServerException.php +0 −27 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeCallbackResponseJWTParser.php +0 −4 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeSaveDocumentTokenDAO.php +11 −6 Go to diff View file
M plugins/onlyoffice/include/Save/SaveDocumentTokenData.php +3 −1 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +3 −3 Go to diff View file
M plugins/onlyoffice/tests/integration/DocumentServer/DocumentServerDaoTest.php +14 −14 Go to diff View file
M plugins/onlyoffice/tests/integration/Save/OnlyOfficeSaveDocumentTokenDAOTest.php +15 −7 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAdminSettingsControllerTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAdminSettingsPresenterBuilderTest.php +3 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeAvailabilityCheckerTest.php +5 −4 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeRestrictAdminSettingsControllerTest.php +20 −13 Go to diff View file
M plugins/onlyoffice/tests/unit/DocumentServer/DocumentServerTest.php +5 −4 Go to diff View file
M plugins/onlyoffice/tests/unit/Download/OnlyOfficeDownloadDocumentTokenGeneratorDBStoreTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/DocmanFileLastVersionToOnlyOfficeDocumentTransformerTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/Editor/OnlyOfficeDocumentConfigProviderTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/Editor/OnlyOfficeGlobalEditorJWTokenProviderTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/ProvideOnlyOfficeDocumentStub.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/TransformDocmanFileLastVersionToOnlyOfficeDocumentStub.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/DocumentServerForSaveDocumentTokenRetrieverTest.php +25 −51 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackDocumentSaverTest.php +12 −11 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackResponseJWTParserTest.php +21 −10 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveCallbackURLGeneratorTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveControllerTest.php +2 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenGeneratorDBStoreTest.php +5 −3 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenRefresherDBStoreTest.php +4 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveDocumentTokenVerifierTest.php +4 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Stubs/IDeleteDocumentServerStub.php +1 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Stubs/IRestrictDocumentServerStub.php +3 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Stubs/IRetrieveDocumentServersStub.php +2 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Stubs/IUpdateDocumentServerStub.php +1 −1 Go to diff View file