Question
I tried to move a twiki topic to another web, and selected all the checkboxes for "Change links in topics that refer...". After clicking "Rename/Move", I got a "Unmatched [ in regex..." error message.
I found that, even so, the topic was correctly moved. The problem was that someone created a topic named "[PROJECT" (without quotes, starting with a bracket). And this page had a link to the moved topic.
I had some other problems with this bracket:
- When I view "[PROJECT" topic, I have a rendering problem inside the left bar. Between the current web link and the "Create new topic" link, the following text appears: "[[/view/TestWeb/WebTopicCreator?parent=[PROJECT][". The "Create new topic" link is broken (it's not clickable), and "]]" appears after that;
- I can't create links to "[PROJECT", even escaping the bracket;
The solution I found to that was adding a escaped bracket to "NameFilter" parameter inside the configure page. Now people can't create or rename a topic with brackets in the name. But first I had to change the trouble topic name, because after updating the configuration, I can't access it (when I try to view "[PROJECT", twiki renames the parameter to "PROJECT", and shows "This topic does not exist").
Is this solution correct? Are there any other characters that should be included in "NameFilter"? Maybe "]"?
Environment
--
GuilhermeGarnier - 06 Dec 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
[Bracket] -- Not an answer to your question, sorry. Just testing html encoding of brackets.
--
FranzJosefGigler - 06 Dec 2007
Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed. Please file a bug if you think it is one.
--
PeterThoeny - 02 Feb 2008
The same thing happens with parenthesis in topic names, so the question is: should topic names be allowed to have these characters, or should
NameFilter have all these in it, including parehthesis?
--
RobertWithrow - 17 Jul 2008
Brackets of any kind should not be used for topic name. Yes, adding to filter would be appropriate. If a topic exists with brackets, best to rename on shell level (at
data/Web/Topic.txt and
.txt,v and
pub/Web/Topic/ directory in case there are any attachments.)
--
PeterThoeny - 02 Sep 2008