SID-02273: Deleted attachments are still visible
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
v5.10.0 |
| Category: |
CategoryAttachments |
Server OS: |
Suse Linux Enterprise Server 11 SP1 |
Last update: |
8 years ago |
Although the attachments were deleted, they are still visible in the table of the attachments at the end of the topic. Which action is necessary to clear the table of attachements from the deleted one and who can do this action?
--
Peter Starek - 2016-10-27
Discussion and Answer
If you delete an attachment via the GUI ("more topics actions" screen) it will be moved to the TashAttachement topic in the Trash web, e.g. it will no longer show in the topic's attachment table.
If you delete an attachment on the file level, the attachment meta data such as
%META:FILEATTACHMENT{name="file.doc" ... }% still remains in the topic. You could edit the topic text directly in the shell, but that way the version history of the topic would get out of sync.
--
Peter Thoeny - 2016-10-27
The attachment was deleted via the GUI ("more topics actions" screen) because I have no other way to do it, but it is still showed in the topic's attachment table.
--
Peter Starek - 2016-10-27
Maybe there was something going wrong because I had to delete 10 or more attachments and I opened each attachment in a separate tab of my browser and then I clicked on "delete" in every tab, not waiting that the action in one tab has ended.
--
Peter Starek - 2016-10-27
Ah that can explain it if you delete simultaneously in parallel windows. To fix, edit the file on the shell level and delete the extra
META:FILEATTACHMENT, then edit & save the topic in the browser to bump up the topic revision.
--
Peter Thoeny - 2017-03-19
It has worked as you wrote it. Thanks a lot.
--
Peter Starek - 2017-03-22
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.