Item12670: WikiName clash when cacheUserFromEntry from checkCacheForLoginName is not handled

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: LdapContrib
Branches: master
Reported By: TerjeNessAndersen
Waiting For:
Last Change By: MichaelDaum
in Foswiki::Contrib::LdapContrib::checkCacheForLoginName(), if:
  1. The $LoginName is unknown ...
  2. and the LDAP entry for the $LoginName is fetched,
  3. and cacheUserFromEntry is run on the LDAP entry,
  4. 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
 

ItemTemplate edit

Summary WikiName clash when cacheUserFromEntry from checkCacheForLoginName is not handled
ReportedBy TerjeNessAndersen
Codebase
SVN Range
AppliesTo Extension
Component LdapContrib
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins LdapContrib:9ff47edd2ecb
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins LdapContrib:9ff47edd2ecb
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 12 Jan 2015, 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