I moved
TWiki:Codev/MediaWikiConversion
to
TWiki:Plugins/MediaWikiToTWikiAddOnDev
. Besides taking more than 5 minutes and resulting in an "internal server" HTML formatted error delivered in plain text to the browser, there are several issues with rename across webs:
1. The Codev web has a topic called
ML
. References to
HTML
have been converted to
HTCodev.ML
and, references to
XML
to
XCodev.ML
.
2. Escaped words are prefixed with "Codev". For example,
!MediaWiki
turns into
!Codev.MediaWiki
.
3. URLs containing a WikiWord of an existing topic in the Codev web get destroyed. For example,
[[http://trac.edgewall.org/wiki/TracWiki][the Trac Wiki engine]]
turns into
[[http://trac.edgewall.org/wiki/Codev.TracWiki][the Trac Wiki engine]]
.
(I fixed the topic manually.)
--
TWiki:Main/PeterThoeny
- 18 Mar 2007
Possibly related to
Item3760.
--
TWiki:Main.ArthurClemens
- 18 Mar 2007
I believe the problem exists in
Render.pm
, in
sub replaceTopicReferences
. It looks like the second to last search/replace is too aggressive.
$text =~ s/(\W|^)$args->{oldTopic}\b/$1$repl/g;
makes more sense to me.
--
TWiki:Main.CrawfordCurrie
- 20 Mar 2007
Worth making sure the regex is
I18N-safe -
\w
is always a bad idea because platforms such as Windows have broken Perl locales... See
TWiki:Codev.InternationalisationGuidelines
.
I originally spent some time making renames work for
I18N, but didn't manage to fix the other bugs like this.
--
TWiki:Main.RichardDonkin
- 20 Mar 2007
\W
not
\w
. Really
\b
ought to work, but it was removed in the past for some reason, so I assume it was tried but had other problem.
--
TWiki:Main.CrawfordCurrie
- 21 Mar 2007
Fixed on MAIN but not merged to patch branch.
Could also do with some user testing.
CC