Saving wiki page after some idle time fails
Description
Saving a wiki page after editing for some time fails with an error. The only workaround is to copy & paste the edited content into a newly opened window's page, then edit, paste & hit save again.
Steps to reproduce
- Open a wiki page on an openDesk instance
- Start editing the page, but do not save the page
- Keep it open for some time in the background, simulating switching to another task (tested: waiting for 60 minutes)
- Go back to the page and hit the "Save and view" button
Expected result: The page is successfully saved
Actual result: An error message is shown ("Server not responding")
The browser console shows the following errors:
Access to XMLHttpRequest at 'https://id.nightly.opendesk.qa/realms/opendesk/protocol/openid-connect/auth?scope=openid+opendesk-xwiki-scope&claims=%7B%22id_token%22%3A%7B%22xwiki_instance_id%22%3Anull%7D%2C%22userinfo%22%3A%7B%22xwiki_user_accessibility%22%3Anull%2C%22xwiki_user_displayHiddenDocuments%22%3Anull%2C%22xwiki_user_editor%22%3Anull%2C%22xwiki_user_usertype%22%3Anull%2C%22xwiki_user_company%22%3Anull%7D%7D&response_type=code&redirect_uri=https%3A%2F%2Fwiki.nightly.opendesk.qa%2Foidc%2Fauthenticator%2Fcallback&state=pOTRswt9VWMI4zPzUsTguz6QZ2V3P3_CBzO6hU87-9c&client_id=opendesk-xwiki' (redirected from 'https://wiki.nightly.opendesk.qa/bin/save/Main/') from origin 'https://wiki.nightly.opendesk.qa' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Failed to load resource: net::ERR_FAILED id.nightly.opendesk.qa/realms/opendesk/protocol/openid-connect/auth?scope=openid+opendesk-xwiki-scope&claims=%7B%22id_token%22%3A%7B%22xwiki_instance_id%22%3Anull%7D%2C%22userinfo%22%3A%7B%22xwiki_user_accessibility%22%3Anull%2C%22xwiki_user_displayHiddenDocuments%22%3Anull%2C%22xwiki_user_editor%22%3Anull%2C%22xwiki_user_usertype%22%3Anull%2C%22xwiki_user_company%22%3Anull%7D%7D&response_type=code&redirect_uri=https%3A%2F%2Fwiki.nightly.opendesk.qa%2Foidc%2Fauthenticator%2Fcallback&state=pOTRswt9VWMI4zPzUsTguz6QZ2V3P3_CBzO6hU87-9c&client_id=opendesk-xwiki:1
language-text
Affected versions
- openDesk 1.1.1
- XWiki 16.4.5