Item1707: Deleting attachments in NAT and QUICKMENU do not work

Priority: Urgent
Current State: Closed
Released In: 1.0.6, 1.1.0
Target Release: patch
Applies To: Engine
Component: templates
Reported By: TjMaciak
Waiting For:
Last Change By: KennethLavrsen
When clicking on Manage Attachments, the selecting your file and clicking on the trash can it gives me this url: https://server/foswiki/bin/rename/WEB/TopicName?web=Trash&template=renameattachmentdelete&attachment=Firefox-User-Agent.rtf

Currently Shows a white/blank screen. No errors in apache logs or data/*.txt

When adding &skin=pattern to url: https://server/foswiki/bin/rename/WEB/TopicName?web=Trash&template=renameattachmentdelete&attachment=Firefox-User-Agent.rtf&skin=pattern

Then I get the form in pattern to move the attachment to trash.

While discussing with MTempest on #foswiki it has been revealed that foswiki/templates directory only has renameattachmentdelete.pattern.tmpl and no default renameattachmentdelete.tmpl file.

Also there is currently no renameattachmentdelete.nat.tmpl or renameattachmentdelete.quickmenu.tmpl files as well.

Copied templates/renameattachmentdelete.pattern.tmpl into the following:
-r--r--r-- 1 apache apache  1534 Jun 10 16:28 renameattachmentdelete.nat.tmpl
-r--r--r-- 1 apache apache  1534 Jun 10 16:30 renameattachmentdelete.quickmenu.tmpl
-r--r--r-- 1 apache apache  1534 Jun 10 16:30 renameattachmentdelete.tmpl

When using temporary fix above, and moving an attachment to trash, while trying to move that
trashed attachment back to WebNAME/WebHome topic it gave me a blank screen here as well.  Possibly
missing another .tmpl file? need to dig more into this to find out what causes blank screen in this

If you need further clarification or testing please contact TJCRI in #foswiki


-- TjMaciak

I have a 1.0.6 release that need to go out now.

Are we done with this one?

-- KennethLavrsen - 16 Jun 2009

This change works with PatternSkin. I have not tried it myself with NatSkin or QuickMenuSkin. I can address that after the release if there is a problem. Changing status to waiting-for-release

-- MichaelTempest - 17 Jun 2009

ItemTemplate edit

Summary Deleting attachments in NAT and QUICKMENU do not work
ReportedBy TjMaciak
Codebase 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component templates
Priority Urgent
CurrentState Closed
Checkins distro:006bdea6f3f3 distro:4c2200c7e84a distro:5203b8f30367 distro:1466369e5c02 distro:889ea9db58a9 distro:6c12b06a13bd
TargetRelease patch
ReleasedIn 1.0.6, 1.1.0
Topic revision: r12 - 22 Jun 2009, KennethLavrsen
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