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:
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:
Main.ATestTopic
%USERSWEB%.ATestTopic
And then rename ATestTopic to ATestTopicRenamed, after the rename, your page will have one good link and one broken link:
Main.ATestTopicRenamed
%USERSWEB%.ATestTopic
--
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