Ok so the issue is that the scripts don't handle well the case when the current document doesn't have a previous revision. The problem can be reproduced with these steps: * Find a page that has only 1 revision * Edit it, then delete the new revision created * Then trigger the notif scheduler job
Specifically the problem is at https://github.com/xwiki/xwiki-platform/blob/69fe80c401fc1f542bda61bd2bdf1621f881e9f6/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/notification/email/macros.vm#L185-L190 which, in this case, results in {{$origdoc}} to be null and then the {{createDocumentDiff}} macro doesn't handle that properly and neither does {{createDocumentDiffSummary}}. |
|