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

Bad error message when failing to compare attachments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 8.4-rc-1
    • 7.4.2
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      In the logs of xwiki.org I got lots of:

      2016-03-11 10:50:44,589 [http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle?viewer=changes&rev2=143.1] ERROR c.x.x.d.XWikiDocument          - Failed to compare attachments [com.xpn.xwiki.doc.XWikiAttachment@592382f2] and [com.xpn.xwiki.doc.XWikiAttachment@2a6a0b96] 
      2016-03-11 10:50:44,596 [http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle?viewer=changes&rev2=143.1] ERROR c.x.x.d.XWikiDocument          - Failed to compare attachments [com.xpn.xwiki.doc.XWikiAttachment@12136706] and [com.xpn.xwiki.doc.XWikiAttachment@37d0c42f] 
      2016-03-11 10:50:44,882 [http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle?viewer=changes&rev2=143.1] ERROR c.x.x.d.XWikiDocument          - Failed to compare attachments [com.xpn.xwiki.doc.XWikiAttachment@5e170a10] and [com.xpn.xwiki.doc.XWikiAttachment@3a95d0b2] 
      2016-03-11 10:50:44,885 [http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle?viewer=changes&rev2=143.1] ERROR c.x.x.d.XWikiDocument          - Failed to compare attachments [com.xpn.xwiki.doc.XWikiAttachment@6cb7ecb4] and [com.xpn.xwiki.doc.XWikiAttachment@1f15552f] 
      2016-03-11 10:50:44,887 [http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle?viewer=changes&rev2=143.1] ERROR c.x.x.d.XWikiDocument          - Failed to compare attachments [com.xpn.xwiki.doc.XWikiAttachment@4a666333] and [com.xpn.xwiki.doc.XWikiAttachment@7facf6e] 
      

      2 problems:

      • We should display information about the attachments and not their instance id (maybe we're missing some toString() method)
      • We should also include why it's failing

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            vmassol Vincent Massol
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: