[Kolab-devel] Freebusy data not provided (native openSUSE)

Gunnar Wrobel wrobel at pardus.de
Sun Apr 19 05:50:02 CEST 2009


Quoting Richard Bos <ml at radoeka.nl>:

> Hi Alar,
>
> Op zaterdag 18 april 2009 12:02:01 schreef Alar Sing:
>> I did some debugging on this issue
>> something is wrong in class Horde_Kolab_FreeBusy_Cache_DB function
>> &singleton after $cachedb[$signature] = new $class($cache_dir); line
>> there is nothing script stops here with $class($cache_dir) being
>> Horde_Kolab_FreeBusy_Cache_DB_acl(/var/cache/freebusy)
>> I looked /var/cache/freebusy has owner apache user and has correct chmod
>
> To exclude any problem with the permissions just make the directory  
> 777.  That
> way you know for sure that it should work.  After the correct permission or
> user settings can be determined.
>
> I found a diff between the openSUSE version and the openpkg version of the
> file Horde/Kolab/FreeBusy/Cache.php
> The diff is as follows:
> # cat /var/tmp/Horde_Kolab_Freebusy_Cache.diff
> --- /usr/share/php5/PEAR/Horde/Kolab/FreeBusy/Cache.php 2009-04-10
> 22:45:52.000000000 +0200
> +++ /var/tmp/Cache.php  2009-04-18 16:17:17.000000000 +0200
> - * $Horde: framework/Kolab_FreeBusy/lib/Horde/Kolab/FreeBusy/Cache.php,v
> 1.17.2.3 2009/03/20 22:03:32 wrobel Exp $
> + * $Horde:  
> framework/Kolab_FreeBusy/lib/Horde/Kolab/FreeBusy/Cache.php,v 1.17
> 2008/12/12 15:00:07 wrobel Exp $
>   *
>   * Copyright 2004-2008 Klarälvdalens Datakonsult AB
>   *
> @@ -169,8 +169,6 @@
>                  if (is_a($result, 'PEAR_Error')) {
>                      return $result;
>                  }
> -            } else {
> -                $acl = null;
>              }
>
>               
> Horde::logMessage(sprintf("Horde_Kolab_FreeBusy_Cache::store(file=%s,
> relevance=%s, acl=%s, xacl=%s)",
> @@ -363,9 +361,27 @@
>          /* Check if the calling user has access to the extended information
> of
>           * the folder we are about to integrate into the free/busy data.
>           */
> -        $groups = $access->user_object->getGroups();
> -        if (is_a($groups, 'PEAR_Error')) {
> -            return $groups;
> +        $uid_groups = $access->user_object->getGroups();
> +        if (is_a($uid_groups, 'PEAR_Error')) {
> +            return $uid_groups;
> +        }
> +
> +        global $conf;
> +        require_once 'Horde/Kolab/Server.php';
> +        /* Connect to the Kolab user database */
> +        $db = &Horde_Kolab_Server::singleton(array('uid' => $conf['kolab']
> ['ldap']['phpdn']));
> +
> +        $groups = array();
> +        foreach ($uid_groups as $uid) {
> +            $group = $db->fetch($uid);
> +            if (is_a($groups, 'PEAR_Error')) {
> +                continue;
> +            }
> +            $mail = $group->get(KOLAB_ATTR_MAIL);
> +            if (is_a($mail, 'PEAR_Error')) {
> +                continue;
> +            }
> +            $groups[] = $mail;
>          }
>
>          $groups[] = $access->user;
>
> Compared to the openSUSE file, openpkg has something added to the file.  It's
> a little weird as the openpkg seems to be a little older....

This is not that weird :) The OpenPKG version is about stability and  
testing. So we currently use Kolab_FreeBusy-0.1.2 with a few selected  
patches for Kolab-Server-2.2.1. This set has been tested for  
stability. If you need that stability for you system you should try to  
mirror the OpenPKG packages as close as possible.

> I can't determine if the different code will have impact on the  
> problem that we see.

This may well be the case. The "use_acl" section was a patch somebody  
submitted. It had some initial problems but I had hoped to eliminate  
them all.

As I want to switch to the newer code (Kolab_FreeBusy-0.1.4) within  
Kolab Server CVS HEAD you should open an issue. I'll take a close look  
than.

Cheers,

Gunnar

> I'll sent you the openpkg version in private.  Perhaps you can test it with
> that one?
>
> --
> Richard
>
> _______________________________________________
> Kolab-devel mailing list
> Kolab-devel at kolab.org
> https://kolab.org/mailman/listinfo/kolab-devel
>



-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 700 6245 0000                          Bundesstrasse 29
Fax    : +49 721 1513 52322                          D-20146 Hamburg
--------------------------------------------------------------------
    >> Mail at ease - Rent a kolab groupware server at p at rdus <<
--------------------------------------------------------------------


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.kolab.org/pipermail/devel/attachments/20090419/c097bef8/attachment.sig>


More information about the devel mailing list