$registry->callByPackage() requires login?

Marc G. Fournier scrappy@hub.org
Thu, 14 Feb 2002 15:49:15 -0400 (AST)


Here's the debugging code I've add so far, to narrow it down:

syslog(LOG_NOTICE, "Before Horde Login");
$title = _("Horde Login");
if (Auth::getAuth()) {
    syslog(LOG_NOTICE, "During Horde Login: Auth::getAuth");
    include_once HORDE_BASE . '/lib/Menu.php';
    syslog(LOG_NOTICE, "During Horde Login: fullname");
    $fullname = ucfirst(Auth::getAuth());
    $template = 'user.inc';
    $columns = array();
    syslog(LOG_NOTICE, "During Horde Login: registry");
    foreach ($registry->applications as $app => $info) {
        syslog(LOG_NOTICE, "During Horde Login: registry [ $app ]");
        if (isset($registry->services[$app]['horde']['summary'])) {
            syslog(LOG_NOTICE, "During Horde Login: registry [ callByPackage ]");
            $summary = $registry->callByPackage($app, 'horde/summary');
            syslog(LOG_NOTICE, "During Horde Login: registry [ after callByPackage ]");
            if (!PEAR::isError($summary)) {
                $columns[] = $summary;
            }
        }
    }
    syslog(LOG_NOTICE, "During Horde Login: after registry");
    if (count($columns) > 0) {
        $width = round(100 / count($columns));
    }
    syslog(LOG_NOTICE, "During Horde Login: after count");
} elseif ($registry->hasMethod('auth/login')) {
    syslog(LOG_NOTICE, "During Horde Login: auth/login");
    $url = Horde::getFormData('url', Horde::selfURL());
    header('Location: ' . Horde::url($registry->link('auth/login', array('url' => Horde::url($url, true))), true));
    exit;
} else {
    $js_onLoad = 'setFocus()';
    $template = 'login.inc';
}
syslog(LOG_NOTICE, "After Horde Login");



Here's the results so far:

Feb 14 15:46:41 earth myScripLog[45604]: Before Auth::getAuth
Feb 14 15:46:41 earth myScripLog[45604]: After Auth::getAuth
Feb 14 15:46:41 earth myScripLog[45604]: Before Horde Login
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: Auth::getAuth
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: fullname
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: registry
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: registry [ horde ]
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: registry [ kronolith ]
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: registry [ imp ]
Feb 14 15:46:41 earth myScripLog[45604]: During Horde Login: registry [ callByPackage ]
Feb 14 15:46:50 earth myScripLog[45604]: [/login.php] Login Attempt(flags: 64, connstr: {earth.hub.org:143/imap}): 131.162.6.30 to earth.hub.org:143[imap] as scrappy with [xVUAAA==#54Q48Yx3T/au]
Feb 14 15:46:50 earth myScripLog[45604]: [/login.php] FAILED LOGIN 131.162.6.30 (forwarded for [131.162.138.223]) to earth.hub.org:143[imap] as scrappy
Feb 14 15:46:50 earth myScripLog[45604]: During Horde Login: registry [ after callByPackage ]
Feb 14 15:46:50 earth myScripLog[45604]: During Horde Login: registry [ turba ]
Feb 14 15:46:50 earth myScripLog[45604]: During Horde Login: after registry
Feb 14 15:46:50 earth myScripLog[45604]: During Horde Login: after count
Feb 14 15:46:50 earth myScripLog[45604]: After Horde Login

So its the 'callByPackage' that is causing the failure ... or, rather,
somewhere inside of it ...

If this jar's somethign for someone, great ... I'm going to keep diggign
the debugging further down to see if I can narrow it further ...