Item12897: References aren't updated when macros are used in place of web names

Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Engine
Component: FoswikiUIRename
Reported By: LeilaPearson
Waiting For:
Last Change By: GeorgeClark
It seems to be common practice to refer to Main as %USERSWEB% and System as %SYSTEMWEB% in links. If you decide to rename a topic that is referenced this way, rename will find those references and it will look like it's going to update them, but the actual regex will not do the substitution because it is looking only at the text with unexpanded macros.

For example, if you have a page with the following links:

And then rename ATestTopic to ATestTopicRenamed, after the rename, your page will have one good link and one broken link:

-- LeilaPearson - 10 May 2014

ugh. Rename code is terribly complex as it is. This is indeed a bug, but I have no idea how to go about fixing it. The %USERSWEB% and %SYSTEMWEB% are fairly straight forward as constants, but indeed these could be anything, possible assembled from multiple macros using the inside-out left-right expansion.

I'll mark this confirmed, but I'm not sure where it goes from here.

-- GeorgeClark - 10 May 2014

ItemTemplate edit

Summary References aren't updated when macros are used in place of web names
ReportedBy LeilaPearson
Codebase 1.1.9, trunk
SVN Range
AppliesTo Engine
Component FoswikiUIRename
Priority Normal
CurrentState Confirmed
ReleasedIn n/a
Topic revision: r2 - 10 May 2014, GeorgeClark
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