It appears that the recent versions of ONLYOFFICE (at least on 8.1.0) changed a bit the token provided, the history.serverVersion
is not always set like it was before.
Trace:
2024-08-08T16:15:45+02:00 [857] [error] Invalid or missing `history` key (got "array (
)") in the ONLYOFFICE JWT callback claims: :
#0 /usr/share/tuleap/plugins/onlyoffice/include/Save/OnlyOfficeCallbackResponseJWTParser.php(224): Tuleap\NeverThrow\Fault::fromMessage()
#1 /usr/share/tuleap/plugins/onlyoffice/include/Save/OnlyOfficeCallbackResponseJWTParser.php(198): Tuleap\OnlyOffice\Save\OnlyOfficeCallbackResponseJWTParser->parseJWTClaimsOfSaveRequest()
#2 /usr/share/tuleap/src/common/NeverThrow/Ok.php(70): Tuleap\OnlyOffice\Save\OnlyOfficeCallbackResponseJWTParser->parseJWTClaims()
#3 /usr/share/tuleap/plugins/onlyoffice/include/Save/OnlyOfficeCallbackResponseJWTParser.php(68): Tuleap\NeverThrow\Ok->andThen()
#4 /usr/share/tuleap/plugins/onlyoffice/include/Save/OnlyOfficeSaveController.php(64): Tuleap\OnlyOffice\Save\OnlyOfficeCallbackResponseJWTParser->parseCallbackResponseContent()
#5 /usr/share/tuleap/src/common/Http/Server/RequestHandlerAsMiddleware.php(44): Tuleap\OnlyOffice\Save\OnlyOfficeSaveController->handle()
#6 /usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php(52): Tuleap\Http\Server\RequestHandlerAsMiddleware->process()
#7 /usr/share/tuleap/src/common/Http/Server/SessionWriteCloseMiddleware.php(36): Tuleap\Http\Server\MiddlewareDispatcher->handle()
#8 /usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php(52): Tuleap\Http\Server\SessionWriteCloseMiddleware->process()
#9 /usr/share/tuleap/plugins/onlyoffice/include/Save/SaveDocumentWithTokenMiddleware.php(63): Tuleap\Http\Server\MiddlewareDispatcher->handle()
#10 /usr/share/tuleap/src/common/Http/Server/MiddlewareDispatcher.php(52): Tuleap\OnlyOffice\Save\SaveDocumentWithTokenMiddleware->process()
#11 /usr/share/tuleap/src/common/Request/DispatchablePSR15Compatible.php(62): Tuleap\Http\Server\MiddlewareDispatcher->handle()
#12 /usr/share/tuleap/src/common/Request/FrontRouter.php(241): Tuleap\Request\DispatchablePSR15Compatible->process()
#13 /usr/share/tuleap/src/common/Request/FrontRouter.php(109): Tuleap\Request\FrontRouter->routeHandler()
#14 /usr/share/tuleap/src/www/index.php(50): Tuleap\Request\FrontRouter->route()
#15 {main}