cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item13330 (05 Jul 2015, GeorgeClark)Edit Attach

Item13330: Web create fails to throw error when invalid (utf-8) characters are in the webname.

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiUIManage
Branches: master
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark

Inconsistent web create and the message

How to reproduce:
  • SiteCharset: UTF-8
  • go to ManagingWebs
  • Create Web Űber (e.g. start with an accented character)
  • The confirmation wil say: The web is created
  • But it isn't created the links points into the System web

-- JozefMojzis - 26 Mar 2015

The issue is that validateWebName is not accepting utf8 characters. It returns undef for an invalid webname, and then with ASSERT enabled, i get a crash:

Use of uninitialized value $newWeb in pattern match (m//) at /var/www/foswiki/distro/core/lib/Foswiki/UI/Manage.pm line 157.

The web name regular expressions don't support utf8 characters.

-- GeorgeClark - 27 Mar 2015

Tested again in 1.2-trunk. It doesn't allows create web such "Über", so it is consistent.

-- JozefMojzis - 23 Apr 2015
 

  • screenshot_42.png:
    screenshot 42.png

  • screenshot_43.png:
    screenshot 43.png

ItemTemplate edit

Summary Web create fails to throw error when invalid (utf-8) characters are in the webname.
ReportedBy JozefMojzis
Codebase 1.2.0 beta1, trunk
SVN Range
AppliesTo Engine
Component FoswikiUIManage
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:375a6ed56c73
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:375a6ed56c73
ItemBranchCheckins
Release01x01Checkins
Topic attachments
I Attachment Action Size Date Who Comment
screenshot_42.pngpng screenshot_42.png manage 6 K 26 Mar 2015 - 10:21 JozefMojzis  
screenshot_43.pngpng screenshot_43.png manage 33 K 26 Mar 2015 - 10:21 JozefMojzis  
Topic revision: r6 - 05 Jul 2015, GeorgeClark - This page was cached on 03 May 2018 - 19:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License