Hello everyone.
We are currently testing the migration of our wiki from Confluence to XWiki.
- XWiki Version 17.6.0
- Confluence XML 9.88.3
- Confluence Migrator Application (Pro) 1.35.5
We experience a problem with attachments. After migrating a confluence space, the majority of attachments (but not all, even on the same document) show up with a filesize of “0 bytes” and no mime type in the attachment section:
The attachment itself is present on disk and thumbnails, viewing, downloading, … works just fine. From a functionality standpoint, everything works as expected. The migration logs also do not show anything suspicious at first glance. Therefore, I thought this was just a display bug and looked into the xwikiattachment database table:
All columns look good, but the filesize and mime type fields are actually empty for the effected attachments - but only for the current revisions. All older revisions do have mime types and file sizes:
Given that
- not all attachments in a confluence space are effected
- only the newest revision of attachments is effected
- everything works fine with the effected attachments
- no obvious errors are logged
- I did not find any other posts/issue regarding this topic
I suspect this to be a subtle bug during the migration. I guess you would not be able to immediatly present a solution, so I would be happy if you could point me to where I could dig more into the problem. Maybe someone knows where in the code the missing data is supposed to be read and subsequently written to the database so I could debug that? I already tried debugging but the code for the migration is rather complex so some tips would be appreciated.



