Tags:
create new tag
, view all tags

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

WhatDoesItAffect: Usability

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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2013-01-08 - HideyoImazu
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.