Just completed an upgrade to 10.4 last night and found that several attachments are reported missing. Prior to this upgrade, we were using filesystem storage for attachments for several years.
I have the following settings in my new xwiki.cfg as per documentation:
xwiki.store.recyclebin.content.hint=file xwiki.store.attachment.hint=file xwiki.store.attachment.versioning.hint=file xwiki.store.attachment.recyclebin.content.hint=file xwiki.store.attachment.recyclebin.hint=file
When I check in the filesystem permanent directory
/var/local/scd/storage/... I can locate the attachments in the filesystem; however, those are the same attachments XWiki doesn’t think exists. In my Admin application > DB to Filesystem Porter macro/app I am not even seeing those “missing” attachments appear (namely my user’s profile picture).
My catalina.out is filled with this several times when a page loads where my user profile pic should appear:
[https://MYWIKI.elasticbeanstalk.com/bin/download/XWiki/USERNAME/E-Profile.jpg?width=120&height=120&keepAspectRatio=true] WARN c.x.x.p.i.ImagePlugin - Failed to transform image attachment. com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment Attachment xwiki:XWiki.USERNAME@E-Profile.jpg .... Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#-124564659]
I noticed some JIRA ticket about this issue from way back and then another around 10.4 - 10.5 release. Is there anything I can do in the short term to get these back? I would love to get my users back on XWiki as soon as possible.