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

Uploading a specific file leads to a non usable wiki page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.4.3
    • Attachments
    • XWiki Enterprise 7.4.3 on a Debian system
    • Unknown

    Description

      A user on our wiki uploaded the attached file on a page. Afterwards the file was listed twice in the attachments and we weren't able to delete the attachment nor the page itself. An error occurs in the log:

      Caused by: com.xpn.xwiki.XWikiException: Error number 3234 in 3: Exception while saving attachments attachment list of document xwiki:Company Manual.Datenschutz
              at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1686) ~[xwiki-platform-legacy-oldcore-7.4.3.jar:7.4.3]
              at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:532) ~[xwiki-platform-legacy-oldcore-7.4.3.jar:7.4.3]
              ... 51 common frames omitted
      Caused by: com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachments for attachment RL-2017-(17)-0015-V03_Anhang 3 O?ffentliche WLAN- Hotspots  Risiken und Schutzmaßnahmen_EN.docx of document xwiki:Company Manual.Datenschutz
              at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1762) ~[xwiki-platform-legacy-oldcore-7.4.3.jar:7.4.3]
              at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1677) ~[xwiki-platform-legacy-oldcore-7.4.3.jar:7.4.3]
              ... 52 common frames omitted
      Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiAttachment#1672903354]
              at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:638) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:305) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:246) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:57) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.impl.SessionImpl.fireUpdate(SessionImpl.java:742) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.impl.SessionImpl.update(SessionImpl.java:730) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at org.hibernate.impl.SessionImpl.update(SessionImpl.java:722) ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
              at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1732) ~[xwiki-platform-legacy-oldcore-7.4.3.jar:7.4.3]
              ... 53 common frames omitted
      

      Trying to upload the file twice doesn't work anymore, so something went completely wrong with this attachment. There were no second user uploading something on that page, so he really edited it alone.

      We are using the file storage and not storing it in the DB.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            ise Daniel Isenmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: