Tags:
create new tag
view all tags

Question

If you try to delete an attachment that already exists in TrashAttachment, you will be given an error. Is there a way to get round this without manually moving/deleting the attachment in TrashAttachment? Should there be?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality

-- AndrewRJones - 15 Dec 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

This is currently a limitation of TWiki. You need to move the previous attachment away, or delete the attachment to Trash.WebHome instead.

To clean up the attachments in Trash.TrashAttachment you can do one of this:

  • Rename Trash.TrashAttachment to Trash.TrashAttachment123, and recreate an empty Trash.TrashAttachment.
  • From the shell, delete data/Trash/TrashAttachment.txt* and pub/Trash/TrashAttachment/*, then create an empty Trash.TrashAttachment topic.

-- PeterThoeny - 16 Dec 2006

Yes, with emphasis, there should be a better way. This issue is bringing us around 2-4 user complaints that we have to deal with per week. If the attachment already exists in the trash, TWiki really needs to A) blow away the old deleted attachment or B) rename the old attachment -- just like the Trash in OS X, Windows, etc. do."

Evan Goer via Robert

-- RobertMiller - 14 Mar 2007

See ImproveAttachmentToTrashFlow request.

-- ArthurClemens - 14 Mar 2007

And Bugs:Item5384

-- MartinCleaver - 22 Feb 2008

Could I just copy data/Trash/TrashAttachment.txt* files when there were no attachments

Then when it's time to do this, just clear out the pub/Trash/TrashAttachment/ dir and overwrite the data/Trash/TrashAttachment.txt* files

-- BurtWelsh - 15 Nov 2008

Yes, that is a pragmatic workaround.

-- PeterThoeny - 16 Nov 2008

What is the procedure to cleanup the Trash? We have to manually delete the contents of the Trash from the prompt in the Server? Or do we have any other method to Clear the Trash... Thanks

-- SubhashSrinivasamurthy - 2009-08-04

Has anything changed here, since the post was originally opened? Is there maybe a way to set up the apache to automatically set up a new TrashAttachment Topic every couple of hours? I think this should work, but have no idea how to implement this. Any linux gurus, maybe?

-- ChristophSchmitz - 2009-08-17

Workaround until fixed: Install a cron job that cleans up twiki/pub/Trash/TrashAttachment/ in regular interval.

-- PeterThoeny - 2009-10-02

Change status to:
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2009-10-02 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.