You are here: Foswiki>Tasks Web>Item10087 (01 Dec 2010, MichaelDaum)Edit Attach

Item10087: LdapContrib does weird Normalisation if there is only one word

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: LdapContrib
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelDaum
This The LDAP setup I'm working with atm has a group that has a name Workgroup, and when group normalisation is turned on, that group gets the name WorkgroupWorkgroup. while all the groups with multi-word names become good friendly WikiWords.

I don't think these users will like that - is it intentional?

-- SvenDowideit - 27 Nov 2010

Here's the cure:

--- lib/Foswiki/Contrib/LdapContrib.pm  (revision 10064)
+++ lib/Foswiki/Contrib/LdapContrib.pm  (working copy)
@@ -1314,6 +1314,7 @@
   # if it isn't a valid WikiWord and there's no homepage of that name yet, then try more agressively to 
   # create a proper WikiName
   if (!Foswiki::Func::isValidWikiWord($wikiName) && !Foswiki::Func::topicExists($Foswiki::cfg{UsersWebName}, $wikiName)) {
+    $wikiName = '';
     foreach my $part (split(/[^$Foswiki::regex{mixedAlphaNum}]/, $name)) {
       $wikiName .= ucfirst(lc($part));
     }

-- MichaelDaum - 27 Nov 2010

Fix included in 4.20

-- MichaelDaum - 01 Dec 2010

ItemTemplate edit

Summary LdapContrib does weird Normalisation if there is only one word
ReportedBy SvenDowideit
Codebase
SVN Range
AppliesTo Extension
Component LdapContrib
Priority Normal
CurrentState Closed
WaitingFor
Checkins LdapContrib:765e5bfb2c82
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 01 Dec 2010, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy