Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
5.5.2
-
None
Description
The problem:
The move operation ("Tools > Move") moves the blogpost to the new space, but doesn't move the attachment causing the message "Attachment File Not Found" when trying to download the attachment.
Steps to reproduce:
- Create a new blogpost;
- Add an attachment to this blogpost;
- Move the blogpost to a different space.
Additional information:
Enabling DEBUG for the classes persistence.dao.filesystem.UpdateAttachmentsOnFilesystemOnPageMoveListener and com.atlassian.confluence.pages.persistence.dao in the log4j.properties file brings the following information:
- Moving a Page triggers the UpdateAttachmentsOnFilesystemOnPageMoveListener event and the attachments is moved as expected in the filesystem:
2014-07-11 16:40:47,953 DEBUG [http-bio-8552-exec-10] [persistence.dao.filesystem.UpdateAttachmentsOnFilesystemOnPageMoveListener] moveAttachments page: page: test move v.1 (753665), old space Space{key='ds'} ... 2014-07-11 16:40:48,092 DEBUG [http-bio-8552-exec-10] [persistence.dao.hibernate.AbstractHibernateAttachmentDao] countLatestVersionsOfAttachments Querying database for attachment count on content ID: 753665 ... 2014-07-11 16:40:49,869 DEBUG [http-bio-8552-exec-10] [persistence.dao.hibernate.AbstractHibernateAttachmentDao] countLatestVersionsOfAttachments Querying database for attachment count on content ID: 753665
- Moving a Blogpost doesn't trigger the same event and the file is not moved in the file system:
2014-07-11 16:43:28,995 DEBUG [http-bio-8552-exec-3] [persistence.dao.hibernate.AbstractHibernateAttachmentDao] countLatestVersionsOfAttachments Querying database for attachment count on content ID: 917508 ... 2014-07-11 16:43:30,038 ERROR [scheduler_Worker-7] [atlassian.confluence.pages.DefaultAttachmentManager] getAttachmentData Could not find data for attachment: Attachment: Presentation1.pptx v.1 (1179649) admin - com.atlassian.confluence.pages.persistence.dao.filesystem.AttachmentDataFileSystemException: No such file for Attachment: Presentation1.pptx v.1 (1179649) admin 2014-07-11 16:43:30,038 WARN [scheduler_Worker-7] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Encountered attachment with null stream: Presentation1.pptx 2014-07-11 16:43:30,044 ERROR [scheduler_Worker-7] [atlassian.confluence.pages.DefaultAttachmentManager] getAttachmentData Could not find data for attachment: Attachment: Presentation1.pptx v.1 (1179649) admin - com.atlassian.confluence.pages.persistence.dao.filesystem.AttachmentDataFileSystemException: No such file for Attachment: Presentation1.pptx v.1 (1179649) admin 2014-07-11 16:43:30,044 WARN [scheduler_Worker-7] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Encountered attachment with null stream: Presentation1.pptx 2014-07-11 16:43:30,777 DEBUG [http-bio-8552-exec-5] [persistence.dao.hibernate.AbstractHibernateAttachmentDao] countLatestVersionsOfAttachments Querying database for attachment count on content ID: 917508
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-34835 The attached become unavailable after moving a blog post to another space
- Closed