Details
Description
Hello,
On a page with some attachments, I delete one and going to page history, select current version and previous version, click on "Compare selected version" then xwiki displayed this error message:
“Error while evaluating velocity template changesdoc.vm”
at 95:/skins/flamingo/view.vm[line 111, column 38]
...
... 153 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3002 in 3: The attachment could not be found in the filesystem attachment store (/xxx/data_xwiki/storage/xwiki/Encyclop%C3%A9die/Outils+du+g%C3%A9nie+logiciel/Le+DevOps+au+CPII/WebHome/~this/attachments/agilite_si.svg/agilite_si.svg).
More details on xwiki forum: https://forum.xwiki.org/t/error-while-evaluating-velocity-template-changesdoc-vm-on-xwiki-9-11-4/3864
Ty
Pascal B
Reproducing steps:
- Upload a textual attachment to a document (not a binary file)
- Delete the attachment
- Compare both revisions
Expected results:
- The diff show the missing attachment
Obtained results:
- Error message:
Error number 4001 in 4: Error while evaluating velocity template changesdoc.vm
See the stacktrace attached.
Attachments
Issue Links
- causes
-
XWIKI-18830 XWikiDocument.getAttachmentDiff can return diffs for other attachments than the requested one
- Open
- is duplicated by
-
XWIKI-16188 Error when comparing two revisions after deleting an attachment
- Closed
- relates to
-
XWIKI-18775 Search results show deleted files
- Closed