Details
-
Bug
-
Resolution: Fixed
-
High
-
2.7, 2.7.1, 2.7.2, 2.7.3, 2.8, 2.8.1, 2.8.2, 2.9, 2.9.1, 2.9.2
-
None
Description
In com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.moveAttachment(Attachment, Attachment, ContentEntityObject) we use com.atlassian.core.util.FileUtils.moveDir(File, File) to move the attachments to the new destination. But we never check the return value of moveDir() which may result in the metadata being updated but the file not being moved.
We should throw an exception if the file couldn't be successfully moved, to rollback any changes to the attachment metadata.
Attachments
Issue Links
- relates to
-
CONFSERVER-19331 Allow write configuration of certain fields in administration section
- Closed