[Kolab-devel] [issue2555] Undefined variable: file in Kolab/Freebusy/Cache.php

Richard Bos kolab-issues at intevation.de
Tue Mar 18 20:32:46 CET 2008


New submission from Richard Bos <ml at radoeka.nl>:

This url
https://mail.mydomain.com/freebusy/trigger/login@mydomain.com/Calendar.pfb
for user login at mydomain.com
results in:

# tail php-error.log
[18-Mar-2008 15:33:09] PHP Notice:  Undefined variable: file 
in /usr/share/php5/PEAR/Kolab/Freebusy/Cache.php on line 139
[18-Mar-2008 15:33:09] PHP Notice:  Undefined variable: file 
in /usr/share/php5/PEAR/Kolab/Freebusy/Cache.php on line 141

It executes:
Mar 18 13:55:55 Kolab Free/Busy [debug] [horde] Creating free/busy information 
from 1205794800 to 1210975200 [on line 313 
of "/srv/www/htdocs/horde/lib/Horde/Kolab/Freebusy.php"]
Mar 18 13:55:55 Kolab Free/Busy [debug] [horde] Relevance for INBOX/Calendar is 
readers [on line 213 of "/srv/www/htdocs/horde/lib/Horde/Kolab/Freebusy.php"]
Mar 18 13:55:55 Kolab Free/Busy [debug] [horde] ACL for INBOX/Calendar is a:1:
{s:23:"login at mydomain.com";s:12:"lrswikxtecda";} [on line 23
8 of "/srv/www/htdocs/horde/lib/Horde/Kolab/Freebusy.php"]
Mar 18 13:55:55 Kolab Free/Busy [debug] [horde] No extended ACL value found for 
INBOX/Calendar [on line 260 of "/srv/www/htdocs/horde/lib/
Horde/Kolab/Freebusy.php"]
Mar 18 13:55:55 Kolab Free/Busy [debug] [horde] 
FreeBusyCache::store(file=mydomain^com/login/Calendar, relevance=readers, 
acl=Array, xacl=
 login at mydomain.com) [on line 127 
of "/usr/share/php5/PEAR/Kolab/Freebusy/Cache.php"]
Mar 18 13:55:55 Kolab Free/Busy [error] [horde] Folder INBOX/Calendar is 
irrelevant for user login at mydomain.com. [on line 124 of "/usr/sha
re/php5/PEAR/Kolab/Freebusy/Page.php"]

The code is:
131     function &loadPartial(&$access, $extended)
132     {
133         $fbfilename = $this->_getFilename($access->folder, $access->owner);
134
135         $aclcache = &FreeBusyCacheDB_acl::singleton('acl',  
$this->_cache_dir);
136
137         $relevant = false;
138         foreach ($access->groups as $id) {
139 Horde::logMessage(sprintf(_("Debug: Cache-3 _%s_"), $file), __FILE__, 
__LINE__, PEAR_LOG_DEBUG);
140 # Horde::logMessage(sprintf(_("Debug: Cache-3 %s _%s_, %s"), $id,  
$fbfilename, $id), __FILE__, __LINE__, PEAR_LOG_DEBUG);
141             if ($aclcache->has($file, $id)) {
142                 $relevant = true;
143                 break;
144                 }
145         }
146
"/usr/share/php5/PEAR/Kolab/Freebusy/Cache.php" 877 lines 


I added line 139, to be sure that the variable file is culprit

----------
assignedto: wrobel
messages: 14141
nosy: rbos, wrobel
priority: bug
status: unread
title: Undefined variable: file in Kolab/Freebusy/Cache.php
topic: freebusy
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue2555>
___________________________________________________




More information about the devel mailing list