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.

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/ 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
Checkins distro:375a6ed56c73
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
masterCheckins distro:375a6ed56c73
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 27 Oct 2016 - 10:58.

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