Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 4.4
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS: Ubuntu 7.10
Web Browser: Firefox 2.0.0.11
Categories: Registration

-- GuilhermeGarnier - 06 Dec 2007

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-09-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.