6.0.0-beta1
7/6/25

[#6903] Silence warning on creation/update of a Kolab object
Summary Silence warning on creation/update of a Kolab object
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners wrobel (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 06/12/2008 (6233 days ago)
Due
Updated 07/02/2008 (6213 days ago)
Assigned 06/13/2008 (6232 days ago)
Resolved 07/02/2008 (6213 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/02/2008 07:45:07 AM Thomas Jarosch Comment #9 Reply to this comment
Please reopen in case the current approach does not work for you.
The code change look good to me, thanks.

I'll check it next week in detail.


07/02/2008 07:41:45 AM Gunnar Wrobel Comment #8
State ⇒ Resolved
Reply to this comment
Please reopen in case the current approach does not work for you.
07/02/2008 07:41:03 AM Gunnar Wrobel Comment #7 Reply to this comment

[Show Quoted Text - 13 lines]
Ah, now I understand.
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 :-)
Yes, true.
I'll have an idea that satisfies both your needs: Why not check the
From: and To: address for the "@" character and append "@localhost"
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'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.
Thomas
07/01/2008 07:19:06 AM Thomas Jarosch Comment #5 Reply to this comment

[Show Quoted Text - 11 lines]
I'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'll have an idea that satisfies both your needs: Why not check the 
From: and To: address for the "@" character and append "@localhost" 
only if it is not found?



Thomas


06/25/2008 07:20:14 AM Gunnar Wrobel Comment #4 Reply to this comment
Ups, somehow missed your response to this one. Sorry for the late reply...

[Show Quoted Text - 11 lines]
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'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.
06/13/2008 08:39:57 AM Thomas Jarosch Comment #3 Reply to this comment
This looks not okay to me.

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 "user id". I'm not sure if it always 
must contain an @domain part.


06/13/2008 08:33:29 AM Gunnar Wrobel State ⇒ Feedback
 
06/13/2008 08:33:04 AM Gunnar Wrobel Comment #2 Reply to this comment
This looks not okay to me.



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



Your patch would lead to "wrobel@example.org@example.org" 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.
06/12/2008 09:13:31 AM Thomas Jarosch Assigned to Gunnar Wrobel
State ⇒ Assigned
 
06/12/2008 09:13:17 AM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: framework-Kolab-silence-bogus-warning.patch Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Silence warning on creation/update of a Kolab object
Type ⇒ Bug
Reply to this comment
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&key=200806121 
...



Thomas


Saved Queries