PR with the changes to reproduce the bug and see the logs: https://github.com/xwiki/xwiki-platform/pull/3989