This issue has been fixed by reverting the solution provided for XWIKI-9046: The solution provided in this commit wasn't taking into account usecases when the doc wasn't saved in DB yet, e.g. like in case of renaming. Also the solution is not good since we actually never set the archive in doc in case of criteria not all inclusive, and if it had worked it would have been a problem since we'd have kept only latest revision and lost the remaining of the history when saving docs. So we need another solution, which would be an improvment: I opened XWIKI-22186 for that.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.