You are here: Foswiki>Tasks Web>Item11504 (07 Feb 2012, GeorgeClark)Edit Attach

Item11504: File deleted on system, but no notication that file does not exist when performing "manage" action

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiMeta, FoswikiStore
Branches:
Reported By: CgAdmin
Waiting For:
Last Change By: GeorgeClark
I have deleted some files in the Trash/TrashAttachment folder, but when I click on the action "manage" on the web, there's no indication that my file does not exist until I try to perform an action.

-- CgAdmin - 06 Feb 2012

Unfortunately this is working as designed. The cost of having Store access the file system for every topic view to determine if the attachment Meta is in sync with the file system is prohibitive. There are a couple of ways to deal with this.

  1. Not Recommended is to enable the deprecated {RCS}{AutoAttachPubFiles} option. This will cause the Store to validate the Attachment Meta for every topic view.
  2. Use the UpdateAttachmentsPlugin. This plugin can re-synchronize the file system with the topic Metadata. This is the preferred solution.

-- GeorgeClark - 06 Feb 2012

It's worth noting that we really should ship this functionality by default.

-- PaulHarvey - 06 Feb 2012

I think the consensus in DeprecateAutoAttach was that we need the function, but it doesn't have to be a default plugin. I agree that it ought to be default functionality.

-- GeorgeClark - 07 Feb 2012
 

ItemTemplate edit

Summary File deleted on system, but no notication that file does not exist when performing "manage" action
ReportedBy CgAdmin
Codebase
SVN Range
AppliesTo Engine
Component FoswikiMeta, FoswikiStore
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r4 - 07 Feb 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy