Hi!
I'm trying to automate the upgrade process for our Confluence 7.13 Data Center installation. Therefore I want to use the /rest/zdu/start endpoint to enable upgrade mode via a script.
But I'm stuck right at the beginning on my test system.
It's possible to get the state of the cluster:
curl -k -H "Authorization: Bearer <token>" https://conf-test.server/rest/zdu/state
But when I try
curl -k -H "Authorization: Bearer <token>" https://conf-test.server/rest/zdu/start
there is no console output and in atlassian-confluence.log it says:
2022-01-24 15:58:19,378 WARN [http-nio-8090-exec-6] [common.security.jersey.XsrfResourceFilter] passesAllXsrfChecks XSRF checks failed for request: https://conf-test.server/rest/zdu/start , origin: null , referrer: null
-- url: /rest/zdu/start | traceId: 039e827a3833ec22 | userName: admin
XSRF seems to be a big problem while using the api, but I can't see any reason why /state works and /start doesn't!?!?
Any hint is appreciated!
Thx!