When using the
tool from the WebPreferences
topic to rename a web, the renaming itself works OK but it also renames content in the topics belonging to this web. I started with a web - let's call it Apple
web - and renamed it to Fruit
web. Now all occurrences of
in the topics of the Apple web were renamed to
(and not only the links pointing to these topics).
- 18 Sep 2007
raising to urgent, so its on our radar for 4.2.0 (unless someone tests and can say its fixed) - we can lower it if we find its too much...
also see Item4661
If anyone wants to help - this is an areas taht obviously requires alot more unit tests
- 19 Sep 2007
This applies to web
renaming, which is not as well tested as topic
renaming. Changed the headline from "Rename script renames content as well" to reflect this.
I just manually tested this, and it looks OK. Martin, can you please give a specific setup where non-links are renamed, because it's working fine for me!
I first tried the renaming in our main wiki and failed. I then set up a fresh TWiki4.1.2 install, created a new web with a few topics and tried the renaming there as well. Same result - it's renaming the whole content. I can send you screenshots and/or a tarred version of this web (or the whole wiki). Did you test it with the latest 4.2beta? I haven't tried that.
- 04 Oct 2007
Martin. The best is to attach the actual test web you used in a zip and describe exactly what you did incl what names you changed it to. Developers usually spend 80% of the time on reproducing the bug and 20% fixing it. Giving a clear test case makes bugs more likely to get fixed.
OK, here is a tar file
of the web in question. It's called
and contains two topics called
. Renaming the web (using the
tool from the WebPreferences topic and leaving all
change links to topics that refer to...
leads to the renaming of all
in these two topics. Check for example the topic
title will have changed from
and the subheading from
An Apple Picking Schedule
An Fruit Picking Schedule
For the test, I used an almost plain vanilla TWiki 4.1.2 installation.
- 05 Oct 2007
I have tested your attached web. It does indeed fail in 4.1.2.
And good news. The problem seems fixed in 4.2.0.
I have tested your web and all renaming went perfect.
So upgrade to 4.2.0 when it gets released. Participate in the beta testing to help us getting it to a high quality.
Setting this as waiting for release.
- 06 Oct 2007
That's great news! Do you know whether it was fixed by accident by someone going over the code of
? I guess it must have been a bug in the regex somewhere. I might try to see whether I can include the changes in 4.1.2 as well. I don't think I'll be updating the system to 4.2 in the near future as it is quite a time-consuming process.
- 08 Oct 2007