Feature Proposal: Avoiding conflict in attachment deletion
Motivation
If an attachment of the same file name and extension has been deleted, an attachment deletion fails.
Description and Documentation
Along the same line as picking a non conflicting destination topic name for topic deletion, additional TrashAttachment topics will be created and picked automatically.
In composing the attachment deletion confirmation page, the following will be conducted.
- Whether or not Trash.TrashAttachment has an attachment of the same file name and extension or not is checked. If not, display the confirmation page as usual.
- If it does, TrashAttachment1 is checked. If the topic does not exist, TrashAttachment1 is created and used as the destination of the attachment deletion.
- If TrashAttachment1 exists but it does not have an attachment of the same file name and extension, TrashAttachment1 is used as the destination of the attachment deletion.
- Otherwise, TrashAttachment2, TrashAttachment3, ... are checked in the same manner until a proper deletion destination is found.
Examples
Impact
Implementation
--
Contributors: HideyoImazu - 2012-12-28
Discussion
This was already fixed in TWiki-5.0.2, see
TWikibug:Item5384
- Allow Delete of Duplicate Attachments.
--
PeterThoeny - 2012-12-29
I see. It is taken care of in a bit different manner. So I retract it.
--
Hideyo Imazu - 2013-01-08