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 685882 - NspiGetIDsFromNames failure with MAPI_E_NO_SUPPORT
NspiGetIDsFromNames failure with MAPI_E_NO_SUPPORT
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Contacts (Addressbook)
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
: 685881 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-10 12:53 UTC by Patrice
Modified: 2013-02-27 13:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evolution-data-server log (177.58 KB, text/x-log)
2013-02-19 07:23 UTC, Luf
  Details
proposed ema patch (668 bytes, patch)
2013-02-21 10:54 UTC, Milan Crha
committed Details | Review

Description Patrice 2012-10-10 12:53:40 UTC
Hello,

 I'v been using evolution 3.0.3 with mappi plug-in for quite a long
time now and I have had no problem with access to exchange address
book until I switched to 3.4.4 (Fedora 17) release.

I have no more mail address completion, and I'm not able to do any
mail address research in contact window.

Is there something more to configure ? What info should I provide ?

  Regards
Comment 1 Patrice 2012-10-10 13:04:11 UTC
The output of MAPI_DEBUG=1 evolution:

** (evolution:9769): CRITICAL **: categories_icon_theme_hack: assertion `filename != NULL && *filename != '\0'' failed
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "load printers"
Ignoring unknown parameter "load printers"
Unknown parameter encountered: "cups options"
Ignoring unknown parameter "cups options"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
e-mapi-connection.c:6635: Entering mapi_profile_load 
Loading profile bou48605@DS@euexch.ds.jdsu.net 
e-mapi-connection.c:6657: Leaving mapi_profile_load 
e-mapi-connection.c:578: e_mapi_connection_new: lock(session & global)
e-mapi-connection.c:605: e_mapi_connection_new: unlock(session & global)
e-mapi-connection.c:607: e_mapi_connection_new: Connected 
e-mapi-connection.c:921: e_mapi_connection_get_store_quotas: lock(session & global)
e-mapi-connection.c:985: e_mapi_connection_get_store_quotas: unlock(session & global)
e-mapi-connection.c:5937: Entering e_mapi_connection_get_folders_list 
e-mapi-connection.c:5939: e_mapi_connection_get_folders_list: lock(session & global)
|---+ 2010            : (Container class: IPF.Note C8AAF1A109000003) UnRead : 0 Total : 0 size : 456
|---+ Filtered-2010-01-22 : (Container class: IPF.Note F9B5422107000003) UnRead : 0 Total : 18 size : 794168
|---+ Filtered-2010-02-16 : (Container class: IPF.Note 8AC4B92107000003) UnRead : 0 Total : 6 size : 6448
|---+ Filtered-2010-03-24 : (Container class: IPF.Note DB2EDF2107000003) UnRead : 0 Total : 32 size : 32062
|---+ Filtered-2010-05-17 : (Container class: IPF.Note 151A1D2207000003) UnRead : 0 Total : 15 size : 15643
|---+ Filtered-2010-06-18 : (Container class: IPF.Note E04B882207000003) UnRead : 0 Total : 11 size : 18332
|---+ Filtered-2010-07-16 : (Container class: IPF.Note 82D1D12207000003) UnRead : 0 Total : 7 size : 14215
|---+ Filtered-2010-08-16 : (Container class: IPF.Note 58DE192307000003) UnRead : 0 Total : 4 size : 14074
|---+ Filtered-2010-09-20 : (Container class: IPF.Note DF4FD92407000003) UnRead : 0 Total : 68 size : 211362
|---+ Filtered-2010-11-02 : (Container class: IPF.Note B2242C2507000003) UnRead : 0 Total : 207 size : 684822
|---+ Filtered-2010-12-01 : (Container class: IPF.Note D8B88E8307000003) UnRead : 0 Total : 199 size : 678216
|---+ 2011            : (Container class: IPF.Note F7B9E3A409000003) UnRead : 0 Total : 0 size : 456
|---+ Filtered-2011-01-04 : (Container class: IPF.Note B192E18307000003) UnRead : 0 Total : 124 size : 403909
|---+ Filtered-2011-02-01 : (Container class: IPF.Note D406768507000003) UnRead : 0 Total : 158 size : 517709
|---+ Filtered-2011-03-07 : (Container class: IPF.Note CE66E98607000003) UnRead : 0 Total : 206 size : 638536
|---+ Filtered-2011-04-04 : (Container class: IPF.Note A92A367B08000003) UnRead : 0 Total : 278 size : 870750
|---+ Filtered-2011-05-09 : (Container class: IPF.Note BCB2F39B09000003) UnRead : 0 Total : 177 size : 521647
|---+ Filtered-2011-07-04 : (Container class: IPF.Note F8E0589C09000003) UnRead : 0 Total : 436 size : 1318825
|---+ Filtered-2011-08-31 : (Container class: IPF.Note ADB7229E09000003) UnRead : 0 Total : 282 size : 4253272
|---+ Filtered-2011-11-01 : (Container class: IPF.Note 2103F1A109000003) UnRead : 0 Total : 330 size : 1765133
|---+ Filtered-2012-02-08 : (Container class: IPF.Note 03BAE3A409000003) UnRead : 0 Total : 710 size : 2294487
|---+ 2012            : (Container class: IPF.Note 5245010000000001) UnRead : 0 Total : 0 size : 318
|---+ 09-10           : (Container class: IPF.Note B9F4ABA209000003) UnRead : 0 Total : 2739 size : 10783827
|---+ Boîte de réception : (Container class: IPF.Note F1252A0000002054) UnRead : 0 Total : 0 size : 5268
|---+ Boîte d'envoi  : (Container class: IPF.Note F2252A0000002054) UnRead : 0 Total : 0 size : 318
|---+ Brouillons      : (Container class: IPF.Note D1C2290000002054) UnRead : 0 Total : 0 size : 456
|---+ Calendrier      : (Container class: IPF.Appointment CFC2290000002054) UnRead : 0 Total : 101 size : 6326724
|---+ Contacts        : (Container class: IPF.Contact D0C2290000002054) UnRead : 0 Total : 17 size : 7556
|---+ Conversation Action Settings : (Container class: IPF.Configuration FAB5000000000001) UnRead : 0 Total : 0 size : 0
|---+ Courrier indésirable : (Container class: IPF.Note 64C3290000002054) UnRead : 0 Total : 0 size : 456
|---+ Éléments envoyés : (Container class: IPF.Note F3252A0000002054) UnRead : 0 Total : 3 size : 290804
|---+ Éléments supprimés : (Container class: IPF.Note F4252A0000002054) UnRead : 0 Total : 1 size : 2618
|---+ Filtered        : (Container class: IPF.Note 0B46010000000001) UnRead : 0 Total : 391 size : 17014138
|---+ Journal         : (Container class: IPF.Journal D2C2290000002054) UnRead : 0 Total : 0 size : 0
|---+ Notes           : (Container class: IPF.StickyNote D3C2290000002054) UnRead : 0 Total : 0 size : 0
|---+ Tâches         : (Container class: IPF.Task D4C2290000002054) UnRead : 0 Total : 0 size : 0
e-mapi-connection.c:6019: e_mapi_connection_get_folders_list: unlock(session & global)
e-mapi-connection.c:6021: Leaving e_mapi_connection_get_folders_list 
e-mapi-connection.c:1039: e_mapi_connection_open_personal_folder: lock(session & global)
e-mapi-connection.c:1047: e_mapi_connection_open_personal_folder: unlock(session & global)
e-mapi-connection.c:1141: e_mapi_connection_close_folder: lock(session & global)
e-mapi-connection.c:1145: e_mapi_connection_close_folder: unlock(session & global)
e-mapi-connection.c:1039: e_mapi_connection_open_personal_folder: lock(session & global)
e-mapi-connection.c:1047: e_mapi_connection_open_personal_folder: unlock(session & global)
e-mapi-connection.c:1141: e_mapi_connection_close_folder: lock(session & global)
e-mapi-connection.c:1145: e_mapi_connection_close_folder: unlock(session & global)
e-mapi-connection.c:1039: e_mapi_connection_open_personal_folder: lock(session & global)
e-mapi-connection.c:1047: e_mapi_connection_open_personal_folder: unlock(session & global)
e-mapi-connection.c:1247: e_mapi_connection_get_folder_properties: lock(session & global)
e-mapi-connection.c:1370: e_mapi_connection_get_folder_properties: unlock(session & global)
e-mapi-connection.c:1946: e_mapi_connection_list_objects: lock(session & global)
e-mapi-connection.c:2020: e_mapi_connection_list_objects: unlock(session & global)
e-mapi-connection.c:1141: e_mapi_connection_close_folder: lock(session & global)
e-mapi-connection.c:1145: e_mapi_connection_close_folder: unlock(session & global)
e-mapi-connection.c:1039: e_mapi_connection_open_personal_folder: lock(session & global)
e-mapi-connection.c:1047: e_mapi_connection_open_personal_folder: unlock(session & global)
e-mapi-connection.c:1141: e_mapi_connection_close_folder: lock(session & global)
e-mapi-connection.c:1145: e_mapi_connection_close_folder: unlock(session & global)
e-mapi-connection.c:1039: e_mapi_connection_open_personal_folder: lock(session & global)
e-mapi-connection.c:1047: e_mapi_connection_open_personal_folder: unlock(session & global)
e-mapi-connection.c:1247: e_mapi_connection_get_folder_properties: lock(session & global)
e-mapi-connection.c:1370: e_mapi_connection_get_folder_properties: unlock(session & global)
e-mapi-connection.c:1946: e_mapi_connection_list_objects: lock(session & global)
e-mapi-connection.c:2020: e_mapi_connection_list_objects: unlock(session & global)
e-mapi-connection.c:1141: e_mapi_connection_close_folder: lock(session & global)
e-mapi-connection.c:1145: e_mapi_connection_close_folder: unlock(session & global)
e-mapi-connection.c:6096: e_mapi_connection_peek_folders_list: lock(session & global)
e-mapi-connection.c:5937: Entering e_mapi_connection_get_folders_list 
e-mapi-connection.c:5939: e_mapi_connection_get_folders_list: lock(session & global)
|---+ 2010            : (Container class: IPF.Note C8AAF1A109000003) UnRead : 0 Total : 0 size : 456
|---+ Filtered-2010-01-22 : (Container class: IPF.Note F9B5422107000003) UnRead : 0 Total : 18 size : 794168
|---+ Filtered-2010-02-16 : (Container class: IPF.Note 8AC4B92107000003) UnRead : 0 Total : 6 size : 6448
|---+ Filtered-2010-03-24 : (Container class: IPF.Note DB2EDF2107000003) UnRead : 0 Total : 32 size : 32062
|---+ Filtered-2010-05-17 : (Container class: IPF.Note 151A1D2207000003) UnRead : 0 Total : 15 size : 15643
|---+ Filtered-2010-06-18 : (Container class: IPF.Note E04B882207000003) UnRead : 0 Total : 11 size : 18332
|---+ Filtered-2010-07-16 : (Container class: IPF.Note 82D1D12207000003) UnRead : 0 Total : 7 size : 14215
|---+ Filtered-2010-08-16 : (Container class: IPF.Note 58DE192307000003) UnRead : 0 Total : 4 size : 14074
|---+ Filtered-2010-09-20 : (Container class: IPF.Note DF4FD92407000003) UnRead : 0 Total : 68 size : 211362
|---+ Filtered-2010-11-02 : (Container class: IPF.Note B2242C2507000003) UnRead : 0 Total : 207 size : 684822
|---+ Filtered-2010-12-01 : (Container class: IPF.Note D8B88E8307000003) UnRead : 0 Total : 199 size : 678216
|---+ 2011            : (Container class: IPF.Note F7B9E3A409000003) UnRead : 0 Total : 0 size : 456
|---+ Filtered-2011-01-04 : (Container class: IPF.Note B192E18307000003) UnRead : 0 Total : 124 size : 403909
|---+ Filtered-2011-02-01 : (Container class: IPF.Note D406768507000003) UnRead : 0 Total : 158 size : 517709
|---+ Filtered-2011-03-07 : (Container class: IPF.Note CE66E98607000003) UnRead : 0 Total : 206 size : 638536
|---+ Filtered-2011-04-04 : (Container class: IPF.Note A92A367B08000003) UnRead : 0 Total : 278 size : 870750
|---+ Filtered-2011-05-09 : (Container class: IPF.Note BCB2F39B09000003) UnRead : 0 Total : 177 size : 521647
|---+ Filtered-2011-07-04 : (Container class: IPF.Note F8E0589C09000003) UnRead : 0 Total : 436 size : 1318825
|---+ Filtered-2011-08-31 : (Container class: IPF.Note ADB7229E09000003) UnRead : 0 Total : 282 size : 4253272
|---+ Filtered-2011-11-01 : (Container class: IPF.Note 2103F1A109000003) UnRead : 0 Total : 330 size : 1765133
|---+ Filtered-2012-02-08 : (Container class: IPF.Note 03BAE3A409000003) UnRead : 0 Total : 710 size : 2294487
|---+ 2012            : (Container class: IPF.Note 5245010000000001) UnRead : 0 Total : 0 size : 318
|---+ 09-10           : (Container class: IPF.Note B9F4ABA209000003) UnRead : 0 Total : 2739 size : 10783827
|---+ Boîte de réception : (Container class: IPF.Note F1252A0000002054) UnRead : 0 Total : 0 size : 5268
|---+ Boîte d'envoi  : (Container class: IPF.Note F2252A0000002054) UnRead : 0 Total : 0 size : 318
|---+ Brouillons      : (Container class: IPF.Note D1C2290000002054) UnRead : 0 Total : 0 size : 456
|---+ Calendrier      : (Container class: IPF.Appointment CFC2290000002054) UnRead : 0 Total : 101 size : 6326724
|---+ Contacts        : (Container class: IPF.Contact D0C2290000002054) UnRead : 0 Total : 17 size : 7556
|---+ Conversation Action Settings : (Container class: IPF.Configuration FAB5000000000001) UnRead : 0 Total : 0 size : 0
|---+ Courrier indésirable : (Container class: IPF.Note 64C3290000002054) UnRead : 0 Total : 0 size : 456
|---+ Éléments envoyés : (Container class: IPF.Note F3252A0000002054) UnRead : 0 Total : 3 size : 290804
|---+ Éléments supprimés : (Container class: IPF.Note F4252A0000002054) UnRead : 0 Total : 1 size : 2618
|---+ Filtered        : (Container class: IPF.Note 0B46010000000001) UnRead : 0 Total : 391 size : 17014138
|---+ Journal         : (Container class: IPF.Journal D2C2290000002054) UnRead : 0 Total : 0 size : 0
|---+ Notes           : (Container class: IPF.StickyNote D3C2290000002054) UnRead : 0 Total : 0 size : 0
|---+ Tâches         : (Container class: IPF.Task D4C2290000002054) UnRead : 0 Total : 0 size : 0
e-mapi-connection.c:6019: e_mapi_connection_get_folders_list: unlock(session & global)
e-mapi-connection.c:6021: Leaving e_mapi_connection_get_folders_list 
e-mapi-connection.c:6098: e_mapi_connection_peek_folders_list: unlock(session & global)
e-mapi-connection.c:5417: Entering e_mapi_connection_get_default_folder_id 
e-mapi-connection.c:5419: e_mapi_connection_get_default_folder_id: lock(session & global)
e-mapi-connection.c:5428: e_mapi_connection_get_default_folder_id: unlock(session & global)
e-mapi-connection.c:5430: Leaving e_mapi_connection_get_default_folder_id
Comment 2 Matthew Barnes 2012-10-10 13:21:54 UTC
*** Bug 685881 has been marked as a duplicate of this bug. ***
Comment 3 Milan Crha 2012-10-15 19:04:24 UTC
Thanks for a bug report. I guess the 3.0.3 used offline caching, probably of your Global Address List. This is disabled by default in 3.4.x. To enable it, open evolution in Contacts view, then find the corresponding addressbook(s) there, right-click above its name and select Properties. Then check the value of offline caching, and whether it's included for autocompletion. You may find more options there as well. Such change requires restart of evolution and evolution-addressbook-factory processes, or basically the whole machine, and then a little waiting till the addressbook is stored locally (depends on the size of the addressbook). Please, let me know whether it helped.
Comment 4 Patrice 2012-10-18 06:02:53 UTC
For the mapi address book, I enabled "offline caching", enabled autocompletion. I closed evolution. I killed /usr/libexec/evolution-addressbook-factory. Then I started again evolution, waited for one hour, but I'm still not able to do address research. What could I do more to help you ?
Comment 5 Milan Crha 2012-10-19 11:46:56 UTC
Thanks for the update. I believe you've checked "Include for autocompletion" in addressbook Properties, thus I guess the issue is elsewhere. What will happen if you select the book in Contacts view, and then at the top choose "Name contains" (might be preselected), and type there some name you know is included in the book - it should be at least 3 letters - and then press Enter, to initiate the search? You should see "Searching" in the view, and/or in the bottom status bar.
Comment 6 Patrice 2012-10-30 10:53:10 UTC
First, sorry about the delay !

 I tried to enter the beginning of the name of my boss and press enter, but nothing happened. Neither contact was found, nor "Searching' appeared.

FYI, to be able to find address easily right now, I have created a local address book, and I'm able to find a name in this.
Comment 7 Milan Crha 2012-10-30 13:07:38 UTC
Hmm. I would try to run the book-factory in a terminal, to see what it does. You can do it, after stopping/killing all evolution* processes, with command like this:
   $ LIBMAPI_DEBUG=15 /usr/libexec/evolution-addressbook-factory -r &>log.txt
and then start evolution and try to do the search in the Contacts view. The log.txt file should be populated with chatty debugging from raw MAPI communication between your machine and the server. The log should explain what is wrong with the book itself. I would not attach it here, it contains private information like server addresses and user names, thus feel free to send it directly to me, to my bugzilla email, only name the bug in the Subject, thus it'll not stop in my Spam folder unnoticed. Thanks in advance.
Comment 8 Luf 2013-02-19 07:23:37 UTC
Created attachment 236725 [details]
evolution-data-server log
Comment 9 Luf 2013-02-19 07:24:10 UTC
I'm not sure if I face the same bug but the result is the same.
No searching in Global catalog using MAPI plugin.

I'm using F18:
evolution-3.6.3-2.fc18.x86_64
evolution-data-server-3.6.3-1.fc18.x86_64
evolution-mapi-3.6.3-1.fc18.x86_64
openchange-1.0-12.fc18.x86_64
samba-common-4.0.3-1.fc18.x86_64
samba-libs-4.0.3-1.fc18.x86_64

I'm attaching the requested log (a little bit anonymized).
The main problem is: NspiGetIDsFromNames: struct NspiGetIDsFromNames; result : MAPI_E_NO_SUPPORT

Here is exchange version 2010.
Comment 10 Milan Crha 2013-02-20 11:30:30 UTC
It seems from your log that evolution-mapi got disconnected unexpectedly. I see there this:
   NspiGetIDsFromNames: MAPI_E_NO_SUPPORT
then it continues without any issue with NspiGetMatches request:
   NspiGetMatches: MAPI_E_CALL_FAILED
which follows with
   mapi_Release request
and it's ended with:
   rpc fault: WERR_SERVER_UNAVAILABLE
and then libampi/samba disconnects. Due to the WERR_SERVER_UNAVAILABLE I believe you got disconnected from the server or vpn (I'm do not know what your environment is). I can connect ot my Exchange 2010 server using MAPI without these problem and I can search it as well.

I have setup on the GAL book properties only
  [x] Allow partial search results
the other options are unchecked here.
Comment 11 Luf 2013-02-20 15:43:08 UTC
I have neither VPN nor FW in the path to the exchange.
I set also only Allow partial search results (no change).

I'm still receiving NspiGetIDsFromNames: MAPI_E_NO_SUPPORT.
Any idea what should I test or debug more?
What is NspiGetIDsFromNames for? Should I try to skip it in source code?

How can we compare reasonable environment (as you said it's working for you)?
Comment 12 Milan Crha 2013-02-21 10:48:49 UTC
OK, so your server behaves differently, when converting named ids (something described by a structure) into server-defined property tags (32bit ints). I see in the code that there is a workaround for 2010 server when it returns MAPI_E_CALL_FAILED, thus maybe try to add the MAPI_E_NO_SUPPORT as well and see what it'll do.
Comment 13 Milan Crha 2013-02-21 10:54:53 UTC
Created attachment 237026 [details] [review]
proposed ema patch

for evolution-mapi;

Maybe this will do it, though it doesn't explain your
   rpc fault: WERR_SERVER_UNAVAILABLE
much, at least to me.

I'm building a Fedora 18 test package with the patch included here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=5039304

It'll take some time till it'll be built.
Comment 14 Luf 2013-02-21 12:29:20 UTC
Bingo! This helps me and now I see the Global addressbook.
I can't say if this fixes also reporter's problem.

Thank you very much for your support.
Comment 15 Milan Crha 2013-02-21 19:39:59 UTC
Thanks for a quick confirmation. I'm committing this to sources. Patrice, please reopen if the change didn't help for you. Thanks in advance.

Created commit 9577031 in ema master (3.7.91+)
Created commit 24c2051 in ema gnome-3-6 (3.6.4+)
Comment 16 Patrice 2013-02-27 13:14:01 UTC
I applied the patch on evolution-mapi-3.4.4-2 F17 srpm and it solved my problem !

  Thanks a lot.