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 667849 - Unable to open Contacts address book
Unable to open Contacts address book
Product: evolution-ews
Classification: Other
Component: Contacts (personal addressbooks)
Other Linux
: Normal normal
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
: 664698 (view as bug list)
Depends on:
Reported: 2012-01-13 10:01 UTC by Akhil Laddha
Modified: 2012-04-18 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---

Use e_uri instead of soup_uri since the former parses the parameters properly (1.17 KB, patch)
2012-01-13 10:05 UTC, Chenthill P
needs-work Details | Review
proposed ews patch (12.01 KB, patch)
2012-02-22 19:14 UTC, Milan Crha
committed Details | Review

Description Akhil Laddha 2012-01-13 10:01:29 UTC
Evolution 3.3.3

1. Configured account with Exchange 2010 server
2. Switched to address book
3. Click on 'contacts' address book which is under ews account tree
4. It throws an error

Unable to open address book. This addressbook cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.
Comment 1 Chenthill P 2012-01-13 10:05:18 UTC
Created attachment 205173 [details] [review]
Use e_uri instead of soup_uri since the former parses the parameters properly
Comment 2 Chenthill P 2012-02-17 05:25:24 UTC
Milan, it would be nice if you can have a look at the patch.
Comment 3 Milan Crha 2012-02-17 08:44:20 UTC
Doesn't work for me. I believe the issue is not with SoupURI, it's somewhere else. I tried and SoupURI generates:
while EUri generates
but both are failing the same way (as Akhil wrote in comment #0).

The issue is with the source definition, rather than anything else.

It is like this:
   <group ... base_uri="ews://">
      <source ... relative_uri=";folderid=AAMkA...WqAAA=" ...
and the e_source_get_uri() basically concatenates base_uri with relative_uri, which does not indicate there being any parameters, neither server name to use when asking for authentication.

For example MAPI uses:

Note that ews' "" is an email address being filled in the account creation dialog, while mapi's "" is login @ full exchange server name as filled in account creation dialog.
Comment 4 Milan Crha 2012-02-22 19:14:56 UTC
Created attachment 208213 [details] [review]
proposed ews patch

for evolution-ews;

This change makes it work for me. The only issue is that the account should be disabled and enabled again, because the folder structure is not updated completely, but only with server changes, which is OK, only here it makes a little "trouble". You can recognize correct contact sources by its color, they have set none with this patch, instead of their orange color.
Comment 5 Chenthill P 2012-03-07 03:25:55 UTC
Review of attachment 208213 [details] [review]:

Makes sense. Please commit the patch. Thanks a lot!!
Comment 6 Milan Crha 2012-03-07 07:45:44 UTC
Created commit 857ba24 in ews master (3.3.92+)
Comment 7 Milan Crha 2012-04-18 12:52:40 UTC
*** Bug 664698 has been marked as a duplicate of this bug. ***