Save&view of pages does not work

Hello,

it seems that there is a general bug in XWiki in 10.10 and 10.11.*
If I want to create a page or a glossary entry, the following message is displayed when I click “save&view”:
XWiki%20Error

After a while the error message disappears. Then I refresh and can see the created page/entry.
This is very vexing for users.

Can anyone confirm this problem?

Thanks a lot!

This is not something anyone has reported AFAIK so it could be related to some xwiki setup you have or some extensions you have installed and that listen to the save event and do something that fails. Maybe you could check and uninstall extensions you may have installed (such as the glossary app) and see if it helps?

Do you have any error in the xwiki logs?

Duplicate of Page hangs on save (Save 0%...). However, save is successful .

And I was wrong:

:slight_smile:

@vmassol we had a similar issue on xwiki.org recently. Create / save / upload were reported as failing even though the operation succeeded. I don’t know if we fixed it.

Thanks for your feedback.

Can I support you with any further information to fix/solve the problem?

@vmassol I can still reproduce on xwiki.org :

  • go to https://www.xwiki.org/xwiki/bin/create/Main/
  • Select the Article template (it’s important to create a page from a template)
  • click Save & View from the edit mode → you get the error
  • click Cancel → you see the page was actually saved

Yes we have it on xwiki.org but xwiki.org is on an old version: 8.4.4 and we didn’t change that version in years and we used to not have the problem on xwiki.org so I assumed this got to do with something that we changed in the infra part of xwiki.org somehow and not coming from XWiki itself. I could be wrong. We need to understand what changed on xwiki.org

I could update to v10.11.3. But I don’t think this will solve the problem because I’ve seen this in the version before and now after updating.

My setup is Tomcat9, mysql5.7, XWiki 10.11.2

No web server front end such as apache or ngingx? No reverse proxy?

On xwiki.org the problem is most probably caused by a bad HTTPS setup: relative URLs are resolved as HTTP even if the current request was made with HTTPS. This leads to AJAX requests being blocked due to Mixed content - Security on the web | MDN . You can see the error in the JavaScript console.

For xwiki.org, see Page hangs on save (Save 0%...). However, save is successful - #27 by vmassol