You are here: Foswiki>Tasks Web>Item14895 (08 Jul 2021, MichaelDaum)Edit Attach

Item14895: Wrong backlink after moving attachment

Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Reported By: MachsGut
Waiting For:
Last Change By: MichaelDaum

I dont konow if this behavior is a bug. Following scenario:

I got two Topics: MyTopic and AttachementTopic. There is an attachement (png Image) in the "AttachementTopic" Topic. I Move this Attachement to the "MyTopic" Topic.
Now, i show the Backlinks on the "AttachementTopic" Topic, and it shows me a Reference to "MyTopic" Topic. In the "MyTopic" Topic there is no Backlink.

In the "MyTopic" Topic ther is an META entry:

%META:FILEATTACHMENT{name="image.PNG" attachment="image.PNG" attr="" comment="" date="1581414455" moveby="user" movedto="Wikiname.MyTopic.image.PNG" movedwhen="1581414533" movefrom="Wikiname.AttachementTopic.image.PNG" size="xxx" user="user" version="1"}%

If i clear the following Fields: moveby, movedto, movedwhen, movefrom, the Backlink doesn't appear.

I wouldn't expect this as a Backlink.

What do you think?

-- MachsGut

Not sure I get it. Which link is broken where?

-- MichaelDaum - 11 Feb 2020

Nothing is Broken. The question is:

Is this behaviour right or not? After i moved an attachement like i described, i would NOT expect a Backlink in the Topic where the attachement was, to the Topic where the Attachement moved. This is confusing and maby a bug?

-- MachsGut - 11 Feb 2020

The original location should not have a META:FILEATTACHMENT entry in the raw data anymore once the attachment moved away. If that still is the case, then this is an error. Please attach your LocalSite.cfg to this bug report in this cased (cleaned of course, not to leak passwords or domain names etc).

-- MichaelDaum - 11 Feb 2020

This isn't the Case: Th "AttachementTopic" has NO META:FILEATTACHMENT entry anymore. But, on the AttachementTopic it still shows me a Backlink to the Topic were i've moved the Attachement (when i call ..oops/Wikiname/AttachementTestTopic?template=backlinksweb )

So, this is correct and not a Bug?

-- MachsGut - 11 Feb 2020

Yes this is correct.

-- MichaelDaum - 11 Feb 2020

The backlink is correct, there is no bug here.

-- MichaelDaum - 08 Jul 2021

ItemTemplate edit

Summary Wrong backlink after moving attachment
ReportedBy MachsGut
SVN Range
AppliesTo Engine
Priority Normal
CurrentState No Action Required
TargetRelease n/a
ReleasedIn n/a
Topic attachments
I Attachment Action Size Date Who Comment
image.PNGPNG image.PNG manage 1 byte 11 Feb 2020 - 09:47 UnknownUser  
Topic revision: r7 - 08 Jul 2021, MichaelDaum - This page was cached on 25 Sep 2021 - 11:07.

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