Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15805

Error when using compare feature in history when an attachment is deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 11.3-rc-1, 10.11.7
    • 9.11.4, 11.1-rc-1, 10.11.3
    • Old Core
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    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

          Activity

            People

              surli Simon Urli
              Pbas Pascal BASTIEN
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: