• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item3832: [[bracket links]] are not updated during page renames

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

I created [[bracket link one]] on a page.

I clicked on the link to create the target page, BracketLinkOne .

I then used the "more" link on BracketLinkOne to rename the page to BracketLinkOneA.

The rename operation did not find any places where BracketLinkOne was used, so when the rename occurred visiting the original page with [[bracket link one]] once again showed an "unresolved" link that I could create.

-- TWiki:Main/HarlanStenn - 01 Apr 2007

This is a known problem. It would be very difficult to code something that works efficiently.

If we were going to make it work we need to do this everytime we rename a topic

  • analyse all bracket links in all topics to see if removing spaces and capitalizing first letter in each word will create the same wiki word we are coming renaming from.
  • find a way to guess how a link like "[[my own topic]]" which becomes MyOwnTopic will be renamed. Will for example renaming to "!MyWonderfulNewPage be renamed to "my wonderful new page"? Then TWiki would need to put spaces into the renamed word if the original word was with spaces. But should the words then be lower case? What if the original link had lower case and now is renamed to a topic with a name which is supposed to be upper case.

It is not a trivial change. But I understand the desire to have it made. But I think we would need to park it until TWiki has developed our storage model into something more efficient so that the storage would contain an indexed list of links including the converted square bracket links.

I think it would take hours to rename a topic on a large old TWiki if we implement something that tries to convert square bracket links to wiki words in al topics during a rename.

-- TWiki:Main.KennethLavrsen - 01 Apr 2007

I this is a bug that is new in TWiki 4. I just verified the rename on a Cairo install. A [[bracket link one]] backlink is found during rename of BracketLinkOne; it gets changed to =[[BracketLinkOneA][bracket link one]], as expected.

-- TWiki:Main.PeterThoeny - 02 Apr 2007

Fixed on MAIN but not merged to patch branch.

CC

ItemTemplate
Summary [[bracket links]] are not updated during page renames
ReportedBy TWiki:Main.HarlanStenn
Codebase 4.1.1
SVN Range TWiki-4.1.2, Mon, 26 Mar 2007, build 13227
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:13367
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback