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 610697 - GAL addressbook only shows e-mail addresses
GAL addressbook only shows e-mail addresses
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Calendar
0.29.x
Other Linux
: Normal normal
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
: 612541 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-02-22 15:51 UTC by David Ronis
Modified: 2010-05-28 15:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Gal listing for me (218.11 KB, image/jpeg)
2010-04-20 18:04 UTC, David Ronis
  Details
ema patch (42.28 KB, patch)
2010-04-23 14:58 UTC, Milan Crha
committed Details | Review

Description David Ronis 2010-02-22 15:51:48 UTC
I'm using the git/master of evo and friends.   When I do a gal search on my exchange account all that is returned is the e-mail address.     I believe that other information is available, most importantly telephone numbers, or at any rate this used to be the case.

Note that openchangeclient --userlist does NOT show this extra information either, which might indicate that the problem is at my end (i.e., our IT folks have decided not to include this information).
Comment 1 Milan Crha 2010-04-20 17:28:15 UTC
I see that ema is fetching only few items from GAL, though I'm unsure how much is accessable and how. Note: do also DistList fetching from GAL within this bug report.
Comment 2 David Ronis 2010-04-20 18:04:17 UTC
I checked with our IT guys here and there are additional fields that are populated here (and that would be nice to have).  

Here's what one of them said:

 The phone number that appears in the GAL under Business Phone is stored in the AD attribute, wait for it... 
telephonenumber ! The value his tool returned for Email is stored in the AD attribute, legacyExchangeDN, the attribute he should query is called mail.


They also showed me what their lookup tool returns for me and I'll attach the image.
Comment 3 David Ronis 2010-04-20 18:04:58 UTC
Created attachment 159182 [details]
Gal listing for me
Comment 4 Milan Crha 2010-04-23 14:58:50 UTC
Created attachment 159436 [details] [review]
ema patch

for evolution-mapi;

Sharing code with the book backend. Try with openchange revision 1760+, you'll also see how many items are in your GAL in the status bar. Also, probably will need to delete all under ~/evolution/cache/addressbook/mapi*, especially those mentioning GAL in name, to re-fetch them.
Comment 5 Milan Crha 2010-04-23 15:00:04 UTC
Created commit 879e3b8 in ema master (0.31.1+)
Comment 6 David Ronis 2010-04-23 16:45:15 UTC
Thanks Milan! (and earlier than expected).  

I'm currently trying it out, and have encountered some issues:  1.  you also have to kill off e-addressbook-server; 2.  As in the earlier versions, it seems to download everything before that GAL becomes usable.  In my case,  

ls -lrt mapigal___achemi2\@exchange.campus.mcgill.ca_\;Global\ Address\ List/
total 12824
-rw------- 1 ronis ronis 10427374 2010-04-23 12:30 cache.xml
-rw-r--r-- 1 ronis ronis  2680342 2010-04-23 12:30 cache.summary

which is huge, and doesn't even appear to be finished (although the files aren't growing any longer).   Shouldn't it be better to have the gal as a simple lookup tool; i.e., go after only what is searched for (perhaps with REGEX capability)?

One last thing, while writing this I switched components in evo and triggered a crash.  Might be coincidence, but have a look at  bug 616667
Comment 7 David Ronis 2010-04-23 16:52:45 UTC
OK, after restarting, things seem to work (and indeed there are extra fields).   However, I've again manged to hang evolution.   I'd switched to the gal in the addressbook (the notification area indicates that it's "Searching") and then switched to a local addressbook before the gal search finished.   Evo is hung.   Here's a backtrace:

basic_engine_shape (engine=0x8122dd0, font=0x8078d60, 
    text=0x926e2f50 "MSN Work Screen Name 1:", length=23, analysis=0x8a2214c, 
    glyphs=0x926e3560) at basic-fc.c:184
184	      p = g_utf8_next_char (p);
(gdb) thread apply all bt full

Thread 1 (Thread 0xb560b810 (LWP 9698))

  • #0 basic_engine_shape
  • #1 _pango_engine_shape_shape
    at pango-engine.c line 71
  • #2 pango_shape
    at shape.c line 55
  • #3 shape_run
    at pango-layout.c line 3120
  • #4 process_item
    at pango-layout.c line 3231
  • #5 process_line
    at pango-layout.c line 3529
  • #6 pango_layout_check_lines
    at pango-layout.c line 3850
  • #7 pango_layout_get_extents_internal
  • #8 pango_layout_get_pixel_extents
    at pango-layout.c line 2635
  • #9 pango_layout_get_pixel_size
    at pango-layout.c line 2684
  • #10 get_left_width
    at e-minicard.c line 901
  • #11 remodel
    at e-minicard.c line 980
  • #12 e_minicard_realize
    at e-minicard.c line 533
  • #13 group_add
    at gnome-canvas.c line 1845
  • #14 item_post_create_setup
    at gnome-canvas.c line 218
  • #15 gnome_canvas_item_new
    at gnome-canvas.c line 205
  • #16 addressbook_incarnate
  • #17 e_reflow_model_incarnate
    at e-reflow-model.c line 108
  • #18 incarnate
    at e-reflow.c line 278
  • #19 invoke_incarnate
    at e-reflow.c line 293
  • #20 g_idle_dispatch
    at gmain.c line 4065
  • #21 g_main_dispatch
    at gmain.c line 1960
  • #22 IA__g_main_context_dispatch
    at gmain.c line 2513
  • #23 g_main_context_iterate
    at gmain.c line 2591
  • #24 IA__g_main_loop_run
    at gmain.c line 2799
  • #25 IA__gtk_main
    at gtkmain.c line 1219
  • #26 main
    at main.c line 548

Comment 8 Milan Crha 2010-04-26 14:33:40 UTC
How many contacts do you have there approximately? This information should be shown instead of "Searching.....", when you've the recent master of all the evolution related products (though I think the ema master is also enough). It seems to me that it's not in hung, but in some state of updating UI with a new contact found in your GAL, so it uses 100% of CPU updating view again and again. It should stop later, but if you've really many contacts in the GAL, like 10K or more, then it can take some time. I see I added there a call of e_data_book_view_notify_update for each single contact found in GAL.
Comment 9 David Ronis 2010-04-26 15:00:49 UTC
Hmmm...  I only get "Searching" and I'm running the current git/master of evo and friends (last built on the 24th at 11:00 PM).   I'm pretty sure that I have over 10K entries in the entire gal.   

Note that things are much faster on the second and subsequent times I run evolution.  Nonetheless, how about an option to not download the entire gal, but instead just use it as a search interface, much like ldap?
Comment 10 Milan Crha 2010-04-26 15:49:50 UTC
Yes, I was told it's doable on OpenChange side and I hope and believe there's a bug report requesting the same on evolution-mapi. If not, feel free to add one.
Comment 11 Milan Crha 2010-05-28 15:05:32 UTC
*** Bug 612541 has been marked as a duplicate of this bug. ***