You are here: Foswiki>Tasks Web>Item14895 (11 Feb 2020, MichaelDaum)Edit Attach

Item14895: Wrong backlink after moving attachment

pencil
Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: MachsGut
Waiting For:
Last Change By: MichaelDaum
Hi

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
 

ItemTemplate edit

Summary Wrong backlink after moving attachment
ReportedBy MachsGut
Codebase
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic attachments
I Attachment Action Size Date Who Comment
image.PNGPNG image.PNG manage 1 byte 11 Feb 2020 - 09:47 UnknownUser  
Topic revision: r6 - 11 Feb 2020, MichaelDaum - This page was cached on 05 Jun 2020 - 21:22.

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