| Here's an example of a stack trace I got during a rename operation:
The problem was that attachment index-alldocs-docs.png.png was broken in the DB. However it revealed another issue: if a single attachment is broken, the code at line https://github.com/xwiki/xwiki-platform/blob/456d6149d12d36f5481e70759e7974815591a2c1/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/event/AttachmentEventGeneratorListener.java#L139 will throw an exception and no events will be sent for the other good attachments. We probably need to bullet proof https://github.com/xwiki/xwiki-platform/blob/b014ad74dca9d338bbbd3e16afccf8448970db04/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java#L7398 so that it doesn't fail when one attachment fails. |