<?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>Silence warning on creation/update of a Kolab object</title> 
  <pubDate>Fri, 10 Apr 2026 06:14:15 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6903</link> 
  <atom:link rel="self" type="application/rss+xml" title="Silence warning on creation/update of a Kolab object" href="https://bugs.horde.org/ticket/6903/rss" /> 
  <description>Silence warning on creation/update of a Kolab object</description> 
 
   
   
  <item> 
   <title>Hello Gunnar,



attached patch silences a stupid warning on</title> 
   <description>Hello Gunnar,



attached patch silences a stupid warning on creation/update of a Kolab object.

The warning looks like this:



[Thu Jun 12 11:06:32 2008] [error] [client 172.16.1.2] PHP Notice:  Unknown: Missing or invalid host name after @ (errflg=3) in Unknown on line 0, referer: http://intratest3.m.i2n/horde/turba/contact.php?source=friedrich&amp;key=200806121 ...



Thomas

</description> 
   <pubDate>Thu, 12 Jun 2008 09:13:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t46307</link> 
  </item> 
   
  <item> 
   <title>This looks not okay to me.



Auth::getAuth() will usually r</title> 
   <description>This looks not okay to me.



Auth::getAuth() will usually resolve to something like wrobel@example.org.



Your patch would lead to &quot;wrobel@example.org@example.org&quot; or am I missing something?



You are having that problem on the special users (like admins, maintainers etc.)? Or on standard users? For a standard Kolab user Auth::getAuth() should ALWAYS return a valid mail address. Otherwise the inital UID rewrite failed.</description> 
   <pubDate>Fri, 13 Jun 2008 08:33:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t46381</link> 
  </item> 
   
  <item> 
   <title>&gt; This looks not okay to me.

&gt;

&gt; Auth::getAuth() will usua</title> 
   <description>&gt; This looks not okay to me.

&gt;

&gt; Auth::getAuth() will usually resolve to something like wrobel@example.org.



Oh, Auth::getAuth() always returns just the username for me. If it returns a complete email address, then my patch needs some tweaking. It happens for all users IIRC.



Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if it always must contain an @domain part.

</description> 
   <pubDate>Fri, 13 Jun 2008 08:39:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t46385</link> 
  </item> 
   
  <item> 
   <title>Ups, somehow missed your response to this one. Sorry for the</title> 
   <description>Ups, somehow missed your response to this one. Sorry for the late reply...



&gt;&gt; This looks not okay to me.

&gt;&gt;

&gt;&gt; Auth::getAuth() will usually resolve to something like wrobel@example.org.

&gt;

&gt; Oh, Auth::getAuth() always returns just the username for me. If it 

&gt; returns a complete email address, then my patch needs some tweaking. 

&gt; It happens for all users IIRC.

&gt;

&gt; Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if it always 

&gt; must contain an @domain part.

&gt;



Are you using the Auth::kolab driver then? The kolab driver should rewrite the user id to the primary mail adress (see the setAuth() function in that driver). It looks like you are using UIDs in your system. At least in former times that was problematic for other Horde subsystems and that is why the kolab driver does the rewrite. I admit I don&#039;t remember exactly what the effects of using a UID were. But my gut feeling is that even with our new infrastructure it makes more sense to use the primary Kolab ID.</description> 
   <pubDate>Wed, 25 Jun 2008 07:20:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t46791</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if </title> 
   <description>&gt;&gt; Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if it always

&gt;&gt; must contain an @domain part.

&gt;

&gt; Are you using the Auth::kolab driver then? The kolab driver should 

&gt; rewrite the user id to the primary mail adress (see the setAuth() 

&gt; function in that driver). It looks like you are using UIDs in your 

&gt; system. At least in former times that was problematic for other Horde 

&gt; subsystems and that is why the kolab driver does the rewrite. I admit 

&gt; I don&#039;t remember exactly what the effects of using a UID were. But my 

&gt; gut feeling is that even with our new infrastructure it makes more 

&gt; sense to use the primary Kolab ID.



I&#039;m using IMP as Auth backend, which authenticates against an IMAP server.



Everything works fine, no complaints from the users so far. If some part of the Kolab subsystem does work only with the Kolab Auth backend,

then it needs fixing :-)



I&#039;ll have an idea that satisfies both your needs: Why not check the From: and To: address for the &quot;@&quot; character and append &quot;@localhost&quot; only if it is not found?



Thomas

</description> 
   <pubDate>Tue, 01 Jul 2008 07:19:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t47066</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Kolab/Kolab/Storage/Folder.php?r1=1.7&amp;r2=1.8&amp;ty=u
http://cvs.horde.org/diff.php/framework/Kolab/Kolab/Storage/Session.php?r1=1.1&amp;r2=1.2&amp;ty=u
http://cvs.horde.org/diff.php/framework/Kolab/tests/Horde/Kolab/Storage/DataTest.php?r1=1.2&amp;r2=1.3&amp;ty=u
http://cvs.horde.org/diff.php/framework/Kolab/tests/Horde/Kolab/Storage/ListTest.php?r1=1.2&amp;r2=1.3&amp;ty=u
http://cvs.horde.org/diff.php/framework/Kolab/tests/Horde/Kolab/Storage/SessionTest.php?r1=1.2&amp;r2=1.3&amp;ty=u</description> 
   <pubDate>Wed, 02 Jul 2008 07:36:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t47093</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if</title> 
   <description>&gt;&gt;&gt; Auth::getAuth() is defined as &quot;user id&quot;. I&#039;m not sure if it always

&gt;&gt;&gt; must contain an @domain part.

&gt;&gt;

&gt;&gt; Are you using the Auth::kolab driver then? The kolab driver should

&gt;&gt; rewrite the user id to the primary mail adress (see the setAuth()

&gt;&gt; function in that driver). It looks like you are using UIDs in your

&gt;&gt; system. At least in former times that was problematic for other Horde

&gt;&gt; subsystems and that is why the kolab driver does the rewrite. I admit

&gt;&gt; I don&#039;t remember exactly what the effects of using a UID were. But my

&gt;&gt; gut feeling is that even with our new infrastructure it makes more

&gt;&gt; sense to use the primary Kolab ID.

&gt;

&gt; I&#039;m using IMP as Auth backend, which authenticates against an IMAP server.



Ah, now I understand.



&gt;

&gt; Everything works fine, no complaints from the users so far. If some 

&gt; part of the Kolab subsystem does work only with the Kolab Auth 

&gt; backend,

&gt; then it needs fixing :-)



Yes, true.



&gt;

&gt; I&#039;ll have an idea that satisfies both your needs: Why not check the 

&gt; From: and To: address for the &quot;@&quot; character and append &quot;@localhost&quot; 

&gt; only if it is not found?



As this is just the mail address in the object I guess it could be done that way. But it feels little bit too much like a hack to me. Especially since we should have the possibility to retrieve the users primary mail address from LDAP on any reasonable Kolab server.



This is what I implemented in the new framework now. The Session handler was fetching the Kolab user object anyhow, so retrieving and storing the primary mail was just a small addon. I added your solution in the session handler as a last backup in case querying the LDAP server didn&#039;t help.



The session handler caches the primary mail address so it should not slow down the writing of Kolab messages to IMAP by first querying LDAP.



&gt;

&gt; Thomas

&gt;

</description> 
   <pubDate>Wed, 02 Jul 2008 07:41:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t47094</link> 
  </item> 
   
  <item> 
   <title>Please reopen in case the current approach does not work for</title> 
   <description>Please reopen in case the current approach does not work for you.</description> 
   <pubDate>Wed, 02 Jul 2008 07:41:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t47095</link> 
  </item> 
   
  <item> 
   <title>&gt; Please reopen in case the current approach does not work f</title> 
   <description>&gt; Please reopen in case the current approach does not work for you.



The code change look good to me, thanks.

I&#039;ll check it next week in detail.

</description> 
   <pubDate>Wed, 02 Jul 2008 07:45:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6903#t47096</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
