Item12670: WikiName clash when cacheUserFromEntry from checkCacheForLoginName is not handled
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: LdapContrib
Branches: master
in Foswiki::Contrib::LdapContrib::checkCacheForLoginName(), if:
- The
$LoginName
is unknown ...
- and the
LDAP
entry for the $LoginName
is fetched,
- and
cacheUserFromEntry
is run on the LDAP
entry,
- and
cacheUserFromEntry
returns 0 because the calculated WikiName
is already found in in cache,
Then the clash seems to be forgotten about. Adding the following to
checkCacheForLoginName()
would help:
$this->cacheUserFromEntry($entry, $data, \%wikiNames, \%loginNames);
+ $this->resolveWikiNameClashes($data, \%wikiNames, \%loginNames);
(Not tested, just found when going through code)
--
TerjeNessAndersen - 27 Nov 2013
Fix released in v6.21
--
MichaelDaum - 12 Jan 2015