[xwiki-users] Deleted Attachments in filesystem Storage
Hi! Xwiki 3.1. Attachment versioning turned off (xwiki.store.attachment.versioning.hint = void) Storage is set to file system, Recicle Bin is ON. 1. xwiki/bin/view/Main/AllDocs?view=attachments - gives empty table. How one can see all attachments in a Live table? 2. To verify attachment versioning: attach several times the same file - one copy is stored as a file in a storage, version upgrades correctly - no problem. 3. I deleted an attachment. It shoild be in recycle bin: ~GLOBAL_DELETED_ATTACHMENT_ID_MAPPINGS.xml appeared in /store folder. XML inside shows were to find files. Files are on their places as descriebed. BUT Recycle bin gives terrible surprise: it stores TWO COPIES of deleted file: first is: <filename>.<extension> second is: <filename>~v1.1.<extension> Please note, that attachment VERSIONING is turned OFF. For big attachments (1GB and more) such a behaviour is a disaster for two reasons: - unreasonable disk space consumption - (probably) huge delay while user deleting attachment. What is correct way to disallow XWiki such file duplication? 4. XWiki.DeletedAttachments gives empty table. How one can see all deleted attachments in a Live table? Thanks a lot Dmitry Bakbardin
Hello, I just tried repeating your problems with the same configuration. 1. I went to AllDocs, selected Attachments, and looked at the list and an attachment I had uploaded was there, maybe you can give me more information about it but at this time I cant reproduce the problem. 3. I did reproduce duplication of files after deletion with versioning off. I created a bug issue for this here: http://jira.xwiki.org/browse/XWIKI-6951 4. This issue is http://jira.xwiki.org/browse/XE-896 and it is not a trivial issue to fix since there is no api for getting the list of attachments so XWiki.DeletedAttachments searches for the attachment content in the database. Thank you for the reports I will be taking a look at these issues. Caleb On 09/05/2011 11:52 AM, Haru Mamburu wrote:
Hi!
Xwiki 3.1. Attachment versioning turned off (xwiki.store.attachment.versioning.hint = void) Storage is set to file system, Recicle Bin is ON.
1. xwiki/bin/view/Main/AllDocs?view=attachments - gives empty table. How one can see all attachments in a Live table?
2. To verify attachment versioning: attach several times the same file - one copy is stored as a file in a storage, version upgrades correctly - no problem.
3. I deleted an attachment. It shoild be in recycle bin: ~GLOBAL_DELETED_ATTACHMENT_ID_MAPPINGS.xml appeared in /store folder. XML inside shows were to find files. Files are on their places as descriebed.
BUT
Recycle bin gives terrible surprise: it stores TWO COPIES of deleted file: first is: <filename>.<extension> second is: <filename>~v1.1.<extension>
Please note, that attachment VERSIONING is turned OFF. For big attachments (1GB and more) such a behaviour is a disaster for two reasons: - unreasonable disk space consumption - (probably) huge delay while user deleting attachment.
What is correct way to disallow XWiki such file duplication?
4. XWiki.DeletedAttachments gives empty table. How one can see all deleted attachments in a Live table?
Thanks a lot
Dmitry Bakbardin
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Caleb James DeLisle -
Haru Mamburu