Bug 393898 - Kmail2 EWS does not load contacts - version 17.12.3
Summary: Kmail2 EWS does not load contacts - version 17.12.3
Status: REOPENED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: EWS Resource (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Krzysztof Nowicki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-06 08:41 UTC by Christian
Modified: 2021-12-16 16:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
from system log (57.07 KB, text/plain)
2018-05-07 07:30 UTC, Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2018-05-06 08:41:35 UTC
I managed to set up my Exchange account in KMail2 now that there's a patch for bug 390798 (unable to login to EWS account). Email folders, receiving and sending, and read-only calendar works. But I cannot see any contacts in the Contacts folder.

Observed behaviour: When I open the "Addressbook" tab, I can see the Contacts folder shown in the tree under my account. KMail2 is indicating that the folder is updating. (After a while, it shows that the updating is finished, but it is very slow.) When I right-click the folder and select Properties, I can see the count of contacts (Statistics: Content - 118 objects. Size - 0 B.) But no contacts are shown in the folder in KMail and I cannot access my contacts.

Desired behaviour: The contact folder shows all the contacts that are on the EWS account.

Note: My contacts are stored in the Contacts folder and not in a Global Address List (GAL) - I read on the old akonadi-EWS blog that GAL are not yet supported. This should not be the problem here.

I am not sure how to obtain debug information for this bug - can someone advise me? Thanks!
Comment 1 Krzysztof Nowicki 2018-05-06 19:05:10 UTC
Hi,

Exchange contacts support works sort-of "by accident", but nevertheless it should work, unless Micro$oft messed around with something.

I think for a start it will be worth to enable debug messages which show all requests sent to the Exchange server - you can do this by editing (or creating) the file ~/.config/QtProject/qtlogging.ini and adding the following two lines (skip the [Rules] section if it already exists):

[Rules]
org.kde.pim.ews.client.request.debug=true

Note: the debug log may contain personal information you may want to filter out before you post it.
Comment 2 Christian 2018-05-07 07:30:51 UTC
Created attachment 112459 [details]
from system log
Comment 3 Christian 2018-05-07 07:31:25 UTC
Dear Krzysztof! (Thanks by the way for having made this piece of software, I'm very happy about it.)
I edited that line in the [Rules] section to state =true (before it was =false).
In the system log, the entries that appear now are:

touko 07 10:22:22 puolukka akonadi_ews_resource[4302]: org.kde.pim.ews.client.request: Starting SyncFolderItems request (folder: EwsId(1yxfcpf, qai4hn), state: 1ejz0gd                                                                 
touko 07 10:22:22 puolukka akonadi_ews_resource[4302]: org.kde.pim.ews.client.request: Got SyncFolderItems response (0 changes, last included: true, state: r7s0bd)  

Every time I right-click on the folder and "update", it gives two similar lines, the state from the last "response" is shown as the state of the next "request", the other information remains the same.

I'm attaching the log for akonadi_ews_resource, starting from when I logged in to KDE and opened Kontact. Note, there are two EWS accounts but both are on the same server and have the same problem.
Comment 4 Krzysztof Nowicki 2018-05-07 12:42:49 UTC
Looks like indeed there is some problem.

I have tried adding some contacts into my Exchange Address Book. In the Akonadi Console I can see that the folder has 2 items, but I don't see the actual items. This would indicate that they are not fetched properly from the server.

I'll have to look into this.
Comment 5 Christian 2018-05-07 17:59:48 UTC
Thank you!  Please let me know if you need more information from me (and what commands to run to get it).
Comment 6 Martin Steigerwald 2019-02-07 09:42:04 UTC
Hello Christian. Thank you very much for your bug report. Is still issue still present within KDEPIM/Akonadi 18.12 on recent KDE Frameworks?
Comment 7 Bug Janitor Service 2019-02-22 04:33:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2019-03-09 04:33:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 9 Pedro Albuquerque Santos 2020-06-28 13:40:09 UTC
Has this ever been fixed since it was reported back in 2018? I have the same behavior on Kubuntu 20.04 which ships with akonadi 19.12.3.

I also tried on Manjaro Testing with akonadi 20.04.2 with the same results.
Comment 10 Michi 2021-12-16 16:00:02 UTC
this problem still exists in 21.12.0, although EWS now runs smoother than before for calendar and email