Item10087: LdapContrib does weird Normalisation if there is only one word
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
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