I encountered a problem while deleting the attachment Before deleting, I recorded the attachment preview link.
After deleting the attachment, I can still preview the attachment through this link, but I can’t download it anymore. I know that some temporary files are stored in $share_home/viewfile. Do I have to clear this directory?
What is the reason for this kind of situation?
This is the actual behavior of Confluence.
When an attachment is first previewed, this preview file is cached in the file system as described in this KB.
When an attachment is deleted, and sent to the trash, the preview file isn't removed. Therefore, a user that had the URL to that preview could still access it.
The preview files are deleted when the attachment is purged from the trash.
Let me know if you consider this should work differently and I can log a feature request for it.
The support team opened the bug and made some internal comments.
Although Confluence is operating as designed, this really seem to be a bug and the product team should be able to give us better details.
I've made some internal comments there to the product team.
Let's watch the bug and see how it progress.
If the page is deleted, it will prompt that the page does not exist or has been deleted when accessed through the link. Why is the attachment handled differently?
Deleting attachments means that the administrator does not want these attachments to be accessed by users in any way.
I tried several methods,
1. Clear $share_home/viewfile
2. Rebuild the index
3. Restart the node
4. Flush all in Cache Statistics
5. Clear the browser cache
Unless the attachment is completely removed from the recycle bin, the preview is still visible.
But this is different from our expectations.In some specific scenarios, we expect to temporarily store them in the recycle bin instead of deleting them directly.
Hello Confluence Community! What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events