After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 592906 - Birthdays from Webdav contacts do not show up in calendar
Birthdays from Webdav contacts do not show up in calendar
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.30.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 669249 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-24 14:33 UTC by Sebastian V.
Modified: 2012-05-03 10:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
uncompilable debug patch (8.25 KB, text/plain)
2010-03-31 14:08 UTC, Milan Crha
  Details
eds patch (20.98 KB, patch)
2011-12-23 17:33 UTC, Milan Crha
committed Details | Review

Description Sebastian V. 2009-08-24 14:33:46 UTC
I am using a webdav addressbook which is working fine. But the birthdays from these contacts don't show up in my calendar although the Birthday calendar is activated.
Comment 1 José Sánchez Moreno 2009-12-24 12:13:35 UTC
I'm using the webdav addressbook backend and it's very good. However as well as Sebastian said the contact's faces are not shown in the messages and the Birthdays don't show up in the calendar.
Comment 2 Milan Crha 2010-03-31 14:02:51 UTC
Confirming for 2.30.0. After a bit painful investigation and tests (thanks plaes for a WebDAV address book) I realized it's because the WebDAV address book requires authentication, but the b&a calendar cannot ask for a password other than for itself, neither read password from a store to use a stored one, if any.

I've not much idea how to solve this, the only I clearly see is that the extension to backend class will be most likely necessary. Any better idea?
Comment 3 Milan Crha 2010-03-31 14:08:43 UTC
Created attachment 157588 [details]
uncompilable debug patch

This is an uncompilable debug patch for the issue, which cannot be compiled because of including e-passwords.h in e-cal-backend-contacts.c. Apart of not asking for gtk+ --libs and --cflags, it cannot be done because libedataserverui is compiled after this file.

Maybe some signal like "authenticate-foreign" and similar API function would help here?
Comment 4 Mehmet Giritli 2010-05-14 21:22:36 UTC
Hi,

I have the same issue as above but on a ldap server. After finding about this bug, I thought it was down to the fact that I use authentication to connect to the server. However, I can also read data from this server anonymously, but setting the authentication to anonymous didn't help either. 

So, is it possible at all to use ldap servers for birtdays at the moment?
Comment 5 Milan Crha 2010-05-17 09:56:29 UTC
Yes, it should work without authentication on any server, only the authentication phase is the issue, if I recall correctly. After your change in addressbook properties, did you restart evolution, together with evolution-data-server/e-addressbook-factory/e-calendar-factory process? The previous addressbook setup could be "cached" there, preventing it from working as expected. Also, I suppose you see birthday field filled in the LDAP address book on any contact. Maybe try to run evolution-data-server/e-addressbook-factory/e-calendar-factory from a console, and see the output when you go to the calendar. There should be shown something.
Comment 6 Mehmet Giritli 2010-05-17 11:26:48 UTC
I still could not identify the problem, except that I found some error in the ldap server logs, saying:

get_filter: unknown filter type=48

which seems to be logged when evolution starts. I am investigating this now and if you happen to know what this means, it would be really helpful...
Comment 7 Milan Crha 2010-05-17 13:59:41 UTC
(In reply to comment #6)
> get_filter: unknown filter type=48

Hmm, I do not see the get_filter function in evolution-data-server, neither in evolution of 2.31.1 (actual master).

Looking into the Birthdays & Anniversaries calendar backend it fetches all the contacts from the address book, so it seems like you should also have checked "browsing" in your LDAP address book preferences. For browseable LDAP addressbooks is executed a search for "(cn=*)", maybe it's failing for your server?
Comment 8 Mehmet Giritli 2010-05-17 18:36:19 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > get_filter: unknown filter type=48
> 
> Hmm, I do not see the get_filter function in evolution-data-server, neither in
> evolution of 2.31.1 (actual master).

This is an error from the ldap server log messages, not from evolution. However, these messages are logged when evo queries the server -and they were not there in the previous releases of evo...

> 
> Looking into the Birthdays & Anniversaries calendar backend it fetches all the
> contacts from the address book, so it seems like you should also have checked
> "browsing" in your LDAP address book preferences. For browseable LDAP
> addressbooks is executed a search for "(cn=*)", maybe it's failing for your
> server?

Thanks for the tip. It worked! So, you might wanna do something about the browsable check box, when a ldap server is set to display bdays in the calendar. Or perhaps have it automatically checked when bdays are enabled in that ldap server? If it wasn't for your tip, I would have never discovered this in a million years... thanks again...
Comment 9 Mehmet Giritli 2010-05-18 12:50:57 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > get_filter: unknown filter type=48
> > 
> > Hmm, I do not see the get_filter function in evolution-data-server, neither in
> > evolution of 2.31.1 (actual master).
> 
> This is an error from the ldap server log messages, not from evolution.
> However, these messages are logged when evo queries the server -and they were
> not there in the previous releases of evo...
> 
> > 
> > Looking into the Birthdays & Anniversaries calendar backend it fetches all the
> > contacts from the address book, so it seems like you should also have checked
> > "browsing" in your LDAP address book preferences. For browseable LDAP
> > addressbooks is executed a search for "(cn=*)", maybe it's failing for your
> > server?
> 
> Thanks for the tip. It worked! So, you might wanna do something about the
> browsable check box, when a ldap server is set to display bdays in the
> calendar. Or perhaps have it automatically checked when bdays are enabled in
> that ldap server? If it wasn't for your tip, I would have never discovered this
> in a million years... thanks again...

I spoke too early. So, I opened a new bug about my problem:

https://bugzilla.gnome.org/show_bug.cgi?id=618978
Comment 10 Milan Crha 2011-12-23 17:33:58 UTC
Created attachment 204144 [details] [review]
eds patch

for evolution-data-server;

So here it is, the new EClient API was meant to be ready for this bug report too, but I realized I didn't prepare it that well. Anyway, the attached patch is adding password prompts for authenticated address books being asked from Birthdays & Anniversaries calendar. I discovered little issues on the opening phase with it too.
Comment 11 Milan Crha 2011-12-23 17:35:54 UTC
Created commit 604f474 in eds master (3.3.4+)
Comment 12 Milan Crha 2012-05-03 10:48:58 UTC
*** Bug 669249 has been marked as a duplicate of this bug. ***