<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>cannot add ACLs to kolab&#039;s default tasklist &quot;Aufgaben&quot; (German)</title> 
  <pubDate>Fri, 10 Apr 2026 16:31:16 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6048</link> 
  <atom:link rel="self" type="application/rss+xml" title="cannot add ACLs to kolab&#039;s default tasklist &quot;Aufgaben&quot; (German)" href="https://bugs.horde.org/ticket/6048/rss" /> 
  <description>cannot add ACLs to kolab&#039;s default tasklist &quot;Aufgaben&quot; (German)</description> 
 
   
   
  <item> 
   <title>i am using kolab-2.1 and horde-webmail-1.1rc1



i cannot ad</title> 
   <description>i am using kolab-2.1 and horde-webmail-1.1rc1



i cannot add ACLs to kolab&#039;s default tasklist &quot;Aufgaben&quot; (German), the php error says:



Fatal error: Call to a member function get() on a non-object in /usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/services/shares/edit.php on line 67



i have tracked the issue down to lib/Horde/Share.php and with kolab my fix now works fine, not sure about other backends...



diff -ur horde-webmail-1.1-rc1/lib/Horde/Share.php horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Share.php

--- horde-webmail-1.1-rc1/lib/Horde/Share.php   2007-11-29 12:32:53.000000000 +0000

+++ horde-webmail-1.1-rc1-netzwerkteam/lib/Horde/Share.php      2007-12-25 23:57:02.000000000 +0000

@@ -212,7 +212,7 @@

             }

             $share-&gt;setShareOb($this);

             $name = $share-&gt;getName();

-            $this-&gt;_cache[$name] = &amp;$share;

+            $this-&gt;_cache[$name] = $share;

             $this-&gt;_shareMap[$cid] = $name;

         }



</description> 
   <pubDate>Tue, 25 Dec 2007 23:59:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40329</link> 
  </item> 
   
  <item> 
   <title>What you are doing there is breaking object references - whi</title> 
   <description>What you are doing there is breaking object references - which almost certainly is not the fix; we need to find out why doing that fixes things in your case. What PHP version are you using? What is $share when it&#039;s assigned there, and then later on the error, what is it both with and without the reference?</description> 
   <pubDate>Wed, 26 Dec 2007 04:25:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40346</link> 
  </item> 
   
  <item> 
   <title>the return value of Horde_Share::&amp;getShareById() as in horde</title> 
   <description>the return value of Horde_Share::&amp;getShareById() as in horde-webmail-1.1rc1 returns a string: &quot;INBOX/Aufgaben&quot; (which is the kolab user default task folder in Germain).



</description> 
   <pubDate>Wed, 26 Dec 2007 14:21:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40366</link> 
  </item> 
   
  <item> 
   <title>&gt; What PHP version are you using? 



php-5.4.2-2 as current</title> 
   <description>&gt; What PHP version are you using? 



php-5.4.2-2 as currently in debian unstable



&gt; What is $share 

&gt; when it&#039;s assigned there



INBOX/Aufgaben (already added this as a comment... sorry for the redundancy)



&gt; and then later on the error, what is it 

&gt; both with and without the reference?



what exactly do you mean by this? can you give a clue on where to put my debug prints and var_dumps?



mike





</description> 
   <pubDate>Wed, 26 Dec 2007 14:25:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40367</link> 
  </item> 
   
  <item> 
   <title>i have played around with it a little more.



i have replac</title> 
   <description>i have played around with it a little more.



i have replaced the original method in lib/Horde/Share.php:



    function &amp;getShareById($cid)

    {

        if (!isset($this-&gt;_shareMap[$cid])) {

            $share = &amp;$this-&gt;_getShareById($cid);

            if (is_a($share, &#039;PEAR_Error&#039;)) {

                return $share;

            }

            $share-&gt;setShareOb($this);

            $name = $share-&gt;getName();

            $this-&gt;_cache[$name] = &amp;$share;

            $this-&gt;_shareMap[$cid] = $name;

        }

        return $this-&gt;_cache[$this-&gt;_shareMap[$cid]];

    }



by my own debug version (what it does: do not use _cache, but update _cache):



    function &amp;getShareById($cid)

    {

          $share = &amp;$this-&gt;_getShareById($cid);

          if (is_a($share, &#039;PEAR_Error&#039;)) {

              return $share;

          }

          $share-&gt;setShareOb($this);

          $name = $share-&gt;getName();

          $this-&gt;_cache[$name] = &amp;$share;

          $this-&gt;_shareMap[$cid] = $name;

          return $share

    }



this debug method raises the same error...



BUT!!! if i comment out one line in my this debug method, it suddenly works (although on the first spot this does not make sense...):



    function &amp;getShareById($cid)

    {

          $share = &amp;$this-&gt;_getShareById($cid);

          if (is_a($share, &#039;PEAR_Error&#039;)) {

              return $share;

          }

          $share-&gt;setShareOb($this);

          $name = $share-&gt;getName();

          $this-&gt;_cache[$name] = &amp;$share;

         /*

          * $this-&gt;_shareMap[$cid] = $name;

          */

          return $share

    }



and the return value of the original getShareById() method is exactly what is stored in $this-&gt;_shareMap[$cid] (&quot;INBOX/Aufgaben&quot;, &quot;INBOX/Aufgaben (PRIVAT)&quot;, etc. i.e. the corresponding share name).



is it possible that $this-&gt;_cache[$name] and $this-&gt;_shareMap[$cid] refer to the same data structure????



weird things going on in php...



BTW: where is the _shareMap stored? datatree, php session, filesystem?



hope this helps...

mike</description> 
   <pubDate>Wed, 26 Dec 2007 15:42:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40371</link> 
  </item> 
   
  <item> 
   <title>&gt; BTW: where is the _shareMap stored? datatree, php session,</title> 
   <description>&gt; BTW: where is the _shareMap stored? datatree, php session, filesystem?



It&#039;s just an array, it&#039;s not stored anywhere except for in memory during a single page request. It helps prevent duplicate fetching of a single share during one page load.



Can you try turning off suhosin? It&#039;s been the weak link in a lot of broken PHP behavior we&#039;ve seen.</description> 
   <pubDate>Wed, 26 Dec 2007 15:47:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40377</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you try turning off suhosin? It&#039;s been the weak link i</title> 
   <description>&gt; Can you try turning off suhosin? It&#039;s been the weak link in a lot of 

&gt; broken PHP behavior we&#039;ve seen.



not sure how to do this. php.ini? or do i have to install a php5 with suhosin diabled (i.e. compile from source)? could not find any hints to that with google search...



</description> 
   <pubDate>Wed, 26 Dec 2007 17:00:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40382</link> 
  </item> 
   
  <item> 
   <title>It depends on how your PHP package is built - if it&#039;s static</title> 
   <description>It depends on how your PHP package is built - if it&#039;s statically compiled you need a different PHP build.</description> 
   <pubDate>Wed, 26 Dec 2007 17:02:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40385</link> 
  </item> 
   
  <item> 
   <title>&gt; It depends on how your PHP package is built - if it&#039;s stat</title> 
   <description>&gt; It depends on how your PHP package is built - if it&#039;s statically 

&gt; compiled you need a different PHP build.



suhosin is loaded as an extension. the phpinfo page claims that suhosin is comiled into php5, but you can only configure it, when the suhosin.so extension is loaded...



the bug occured already without php5-suhosin extension installed. now that it is installed, there is no change...



hmmm... </description> 
   <pubDate>Wed, 26 Dec 2007 17:28:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40387</link> 
  </item> 
   
  <item> 
   <title>&gt; the bug occured already without php5-suhosin extension ins</title> 
   <description>&gt; the bug occured already without php5-suhosin extension installed. now 

&gt; that it is installed, there is no change...



So you have uninstalled suhosin, restarted Apache, verified that suhosin is gone from the phpinfo page, re-tested, and still have the issue?</description> 
   <pubDate>Wed, 26 Dec 2007 17:49:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40393</link> 
  </item> 
   
  <item> 
   <title>sorry for the delay. yes, i looked at it again toroughly. it</title> 
   <description>sorry for the delay. yes, i looked at it again toroughly. it is so!</description> 
   <pubDate>Fri, 28 Dec 2007 19:37:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t40475</link> 
  </item> 
   
  <item> 
   <title>Has this been fixed with the recent changes in CVS? From the</title> 
   <description>Has this been fixed with the recent changes in CVS? From the error report I assume it is the same kind of problems since the arrays were messed up in the Kolab driver. Closing for now, please reopen if the problem persists.</description> 
   <pubDate>Mon, 03 Mar 2008 08:06:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t43328</link> 
  </item> 
   
  <item> 
   <title>hi gunnar,



&gt; Has this been fixed with the recent changes </title> 
   <description>hi gunnar,



&gt; Has this been fixed with the recent changes in CVS? From the error 

&gt; report I assume it is the same kind of problems since the arrays were 

&gt; messed up in the Kolab driver. Closing for now, please reopen if the 

&gt; problem persists.



no, the problem remains... in only remembered this request today and tested it...



mike</description> 
   <pubDate>Tue, 01 Apr 2008 09:56:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44290</link> 
  </item> 
   
  <item> 
   <title>however, the php error is slightly different now:



&lt;quote&gt;</title> 
   <description>however, the php error is slightly different now:



&lt;quote&gt;

Fatal error: Call to a member function getACL() on a non-object in /usr/local/share/_horde-versions_/horde3-kolab-cvs/horde/lib/Horde/Share/kolab.php on line 1451

&lt;/quote&gt;</description> 
   <pubDate>Tue, 01 Apr 2008 09:58:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44291</link> 
  </item> 
   
  <item> 
   <title>hi gunnar,



here is a var_dump of the object that causes t</title> 
   <description>hi gunnar,



here is a var_dump of the object that causes the error (_imap points to NULL!?!?)... is the ImapFolder_Permission constructor call faulty?



object(ImapFolder_Permission)#23 (7) { [&quot;_folder&quot;]=&gt;  string(23) &quot;INBOX/Aufgaben (AIKIDO)&quot; [&quot;_imap&quot;]=&gt;  &amp;NULL [&quot;data&quot;]=&gt;  array(1) { [&quot;users&quot;]=&gt;  array(2) { [&quot;m.gabriel@das-netzwerkteam.de&quot;]=&gt;  int(30) [&quot;c.music@das-netzwerkteam.de&quot;]=&gt;  int(6) } } [&quot;_owner&quot;]=&gt;  string(29) &quot;m.gabriel@das-netzwerkteam.de&quot; [&quot;datatree&quot;]=&gt;  NULL [&quot;name&quot;]=&gt;  NULL [&quot;order&quot;]=&gt;  NULL }



Fatal error: Call to a member function getACL() on a non-object in /usr/local/share/_horde-versions_/horde3-kolab-cvs/horde/lib/Horde/Share/kolab.php on line 1452



best,

mike</description> 
   <pubDate>Tue, 01 Apr 2008 10:10:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44292</link> 
  </item> 
   
  <item> 
   <title>Hi Mike,



the location of the error does indicate that you</title> 
   <description>Hi Mike,



the location of the error does indicate that your Share/kolab.php file does not seem to match Horde CVS. Are there any additional patches applied? If you use the current Share/kolab.php from FRAMEWORK_3 you should have the getACL call on line 1236.



If you deactivate share caching, does the problem persist?</description> 
   <pubDate>Thu, 24 Apr 2008 16:06:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44884</link> 
  </item> 
   
  <item> 
   <title>hi gunnar,



&gt; Hi Mike,

&gt;

&gt; the location of the error doe</title> 
   <description>hi gunnar,



&gt; Hi Mike,

&gt;

&gt; the location of the error does indicate that your Share/kolab.php 

&gt; file does not seem to match Horde CVS. Are there any additional 

&gt; patches applied? If you use the current Share/kolab.php from 

&gt; FRAMEWORK_3 you should have the getACL call on line 1236.



i use your external-horde-cvs.sh



and: yes, indeed, i have the distlist patch in the Share/kolab.php.  the corresponding location is line 1236 in vanilla FRAMEWORK_3.



&gt; If you deactivate share caching, does the problem persist?



ahh... ok... it works when caching is disabled... 



mike</description> 
   <pubDate>Thu, 24 Apr 2008 22:32:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44906</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS. Please retest with caching enabled and reopen </title> 
   <description>Fixed in CVS. Please retest with caching enabled and reopen if the problem persists.</description> 
   <pubDate>Fri, 25 Apr 2008 06:58:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6048#t44918</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
