View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004275 | SOGo | ActiveSync | public | 2017-09-06 14:46 | 2017-10-11 15:20 |
Reporter | bgaussen | Assigned To | ludovic | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Apple | OS | iOS | OS Version | 10 |
Product Version | 3.2.10 | ||||
Fixed in Version | 4.0.0 | ||||
Summary | 0004275: EAS Sync requests for Shared folder every second | ||||
Description | Digging into battery drain issue on my iPhone and iPad, I saw in sogo logs a lot of requests (several per second) for a quite long period of time (around 10 minutes):
After enabling SOGoEASDebugEnabled, the request body is :
A network trace indicates an empty response from the server :
As far I understand ActiveSync protocol, an intial Sync command (with a SyncKey value of 0) requires a response with a SyncKey with a non null value. But here sogo answers with an empty response, so iOS client tries again and again for a long period, draining the battery... The issue seems to be linked with the "special" Shared mailbox. In my setup there is no other user mailbox sharing with my account. As a side note, in sogo webmail, when I click on "Other Users" folder (not the icon but the text), I get the following error in sogo log :
| ||||
Steps To Reproduce |
| ||||
Additional Information | sogo+dovecot part of mailcow | ||||
Tags | No tags attached. | ||||
What shows following command on your server? |
|
doveadm mailbox list -u xxx@xxx.xxxSent |
|
Try to set list = children for namespace type=shared. |
|
Hi, I changed dovecot configuration with list=children in namespace type=shared. doveadm does not list anymore Shared mailbox : doveadm mailbox list -u xxx@xxxx.xxxSent But in sogo webmail "Other Users" folder still appears, with same error in sogo logs when I select it ("Mailbox doesn't exist: Shared"). Regarding ActiveSync issue, it's still there, Shared is still in the initial FolderSync response :
iOS device still request a Sync command every second for Shared... |
|
I cannot reproduce the your problem. What is the output of the IMAP command NAMESPACE? |
|
dovecot --version namespace { A NAMESPACE
I'm trying to get more debug information in order to help you reproduce the issue if possible. |
|
ImapDebugEnabled = YES; might help to find the problem. |
|
Hi, In order to get a normal behaviour I disabled Shared namespace in dovecot. Here are the sogo logs with ImaDebugEnabled for one of those many requests : Sep 29 16:06:02 6afa504482f8 S[0x558ad9160300]: OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready. Ben. |
|
I still cannot figure out what's wrong on your side and I'm still not able to reproduce the behavior in my environment. Can you provide me a sogo.log with ImapDebugEnabled = YES AND SOGoEASDebugEnabled = YES AND NGImap4ConnectionCacheDebugEnabled = YES including the first FolderSync response until the loop stats? |
|
You can ignore my previous request, I identified by bug. I can reproduce the problem when I set SOGoIMAPServer = "imaps://127.0.0.1/?tls=YES"; instead of SOGoIMAPServer = "imaps://127.0.0.1 urlString in _allFoldersFromNS (NGImap4Connection) is built like this: imaps://XXXXX%40XXXX.XXX@127.0.0.1/?tls=YESShared/ which is wrong ... |
|
Hi Thank you for the follow-up, and for finding the bug. Indeed I have the following log with NGImap4ConnectionCacheDebugEnabled during the loop : <0x0x561b7fb12f40[NGImap4Connection]> primaryFetchMailboxHierarchyForURL - cache miss for URL: imaps://xxx%40xxxx.xxx@dovecot/?tls=YESShared/ Regards, Benoit. |
|
sogo: master 9b20a837 2017-10-03 09:13 Details Diff |
(fix) properly extract IMAP folder name (fixes 0004275) |
Affected Issues 0004275 |
|
mod - SoObjects/Mailer/SOGoMailAccount.m | Diff File | ||
sogo: v2 1085e55f 2017-10-03 09:13 Details Diff |
(fix) properly extract IMAP folder name (fixes 0004275) |
Affected Issues 0004275 |
|
mod - SoObjects/Mailer/SOGoMailAccount.m | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-09-06 14:46 | bgaussen | New Issue | |
2017-09-06 15:51 | tfu | Note Added: 0012266 | |
2017-09-06 15:53 | bgaussen | Note Added: 0012267 | |
2017-09-06 16:20 | tfu | Note Added: 0012268 | |
2017-09-06 19:43 | bgaussen | Note Added: 0012269 | |
2017-09-07 11:07 | tfu | Note Added: 0012273 | |
2017-09-07 13:18 | bgaussen | Note Added: 0012275 | |
2017-09-17 11:32 | tfu | Note Added: 0012299 | |
2017-09-29 14:09 | bgaussen | Note Added: 0012345 | |
2017-10-01 13:34 | tfu | Note Added: 0012346 | |
2017-10-01 19:29 | tfu | Note Added: 0012347 | |
2017-10-02 07:14 | bgaussen | Note Added: 0012349 | |
2017-10-03 13:15 | ludovic | Changeset attached | => sogo master 9b20a837 |
2017-10-03 13:15 | ludovic | Assigned To | => ludovic |
2017-10-03 13:15 | ludovic | Resolution | open => fixed |
2017-10-03 13:15 | ludovic | Changeset attached | => sogo v2 1085e55f |
2017-10-11 15:19 | ludovic | Status | new => resolved |
2017-10-11 15:19 | ludovic | Fixed in Version | => 4.0.0 |