Tags:
create new tag
, view all tags

Question

I cannot add a user with national chars in WikiName.

The cause is check for "Harmless string" in Sandbox.pm _buildCommandLine (line 220):

if ( $param =~ /^([0-9A-Za-z.+_\-]{0,30})$/ )

and it prevents to have such chars in command line that creates rcs file.

Is it bug or feature? If bug, then simple patch is in attachment

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: gentoo linux
Web server: apache 2.0.55
Perl version: v5.8.7
Client OS: gentoo linux
Web Browser: mozilla firefox 1.5.0.1
Categories: Registration, Internationalisation

-- NikitaSmirnov - 12 Apr 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The code has changed quite a bit since I first did I18N - back then, Apache authentication was the only option and that limited user names to ASCII characters, as I discovered. The new Sandbox code has presumably taken this constraint on board - however, it's probably more likely that the Sandbox code needs to be internationalised in that area. See InternationalisationGuidelines for the sort of code changes required to make I18N of WikiNames work across Perl versions and various environments.

-- RichardDonkin - 12 Apr 2006

Thank you Nikita, I filed Bugs:Item2402

-- PeterThoeny - 01 Jun 2006

This is not a bug. Please see http://twiki.org/cgi-bin/view/TWiki/UsingI18NInUsernames for the workaround to allow you to use I18N in usernames.

-- CrawfordCurrie - 02 Jun 2006

 
Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatdiff Sandbox.pm.4.0.1.i18n.param.diff manage 0.6 K 2006-04-12 - 06:08 NikitaSmirnov Sandbox.pm patch
Topic revision: r4 - 2006-06-02 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.