Item8066: LdapContrib: prevent error when called in the middle of the Foswiki constructor
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Reported by
ReinhardWeh (Testo AG)
Software error:
Can't locate object method "writeWarning" via package "Foswiki" at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 104, <DATA> line 576.
at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 104
Foswiki::Contrib::LdapContrib::writeWarning('Foswiki::Contrib::LdapContrib=HASH(0xa00dd38)', '...') called at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 973
Foswiki::Contrib::LdapContrib::cacheUserFromEntry('Foswiki::Contrib::LdapContrib=HASH(0xa00dd38)', 'Net::LDAP::Entry=HASH(0xa5f5380)', 'HASH(0x9cd613c)', 'HASH(0xa4be510)', 'HASH(0xa4be534)') called at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 758
Foswiki::Contrib::LdapContrib::refreshUsersCache('Foswiki::Contrib::LdapContrib=HASH(0xa00dd38)', 'HASH(0x9cd613c)') called at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 675
Foswiki::Contrib::LdapContrib::refreshCache('Foswiki::Contrib::LdapContrib=HASH(0xa00dd38)') called at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 650
Foswiki::Contrib::LdapContrib::initCache('Foswiki::Contrib::LdapContrib=HASH(0xa00dd38)') called at /var/www/test_foswiki/lib/Foswiki/Contrib/LdapContrib.pm line 278
Foswiki::Contrib::LdapContrib::getLdapContrib('Foswiki=HASH(0x98c26cc)') called at /var/www/test_foswiki/lib/Foswiki/Users/LdapUserMapping.pm line 53
Foswiki::Users::LdapUserMapping::new('Foswiki::Users::LdapUserMapping', 'Foswiki=HASH(0x98c26cc)') called at /var/www/test_foswiki/lib/Foswiki/Users.pm line 123
Foswiki::Users::new('Foswiki::Users', 'Foswiki=HASH(0x98c26cc)') called at /var/www/test_foswiki/lib/Foswiki.pm line 1352
Foswiki::new('Foswiki', 'undef', 'Foswiki::Request=HASH(0x9c935e0)', 'HASH(0x9c86348)') called at /var/www/test_foswiki/lib/Foswiki/UI.pm line 170
Foswiki::UI::execute('Foswiki::Request=HASH(0x9c935e0)', 'CODE(0x9c9334c)', 'view', 1) called at /var/www/test_foswiki/lib/Foswiki/UI.pm line 120
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x9c935e0)') called at /var/www/test_foswiki/lib/Foswiki/Engine/CGI.pm line 26
Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x9b4ee64)') called at /var/www/test_foswiki/bin/view line 45
Fix released as
LdapContrib-3.0.1. Please test if the error still persists.
--
MichaelDaum - 02 Mar 2009