Synchronisation does not work
- /e/ version: 7.0-2020021341116
- Device model: FP2
- When it started to occur:
- Reproducible with the last /e/ version:
- Reproducible with LineageOS:
Summary
The synchronisation with ecloud account does not work for a user.
-
The device is unusable -
The bug is the source of a data loss or a big waste of time -
The bug concerns a third party app -
The bug concerns security -
The bug concerns privacy
The problem
Steps to reproduce
Setup an ecloud account.
What is the current behavior?
Synchronisation is disabled for all elements.
When she tried to enable it, an error is shown.
When she remove/add again the account, the behavior persists.
What is the expected correct behavior?
File, contacts, agenda etc. have to be synced.
Technical informations
Relevant logs (adb logcat
)
(the user email address was anonymized with xxx@e.email
— BEGIN DEBUG INFO —
Account name: Contacts (xxx@e.email Ww)
Authority: com.android.contacts
HTTP REQUEST:
Request{method=PROPFIND, url=https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/contacts/, tags={}}
<?xml version='1.0' encoding='UTF-8' ?>
HTTP RESPONSE:
Response{protocol=h2, code=401, message=, url=https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/contacts/}
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns”>
<s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>
<s:message>No public access to this resource., No ‘Authorization: Bearer’ header found. Either the client didn’t send one, or the server is mis-configured, Username or password was incorrect</s:message>
</d:error>
REMOTE RESOURCE:
https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/contacts/
EXCEPTION:
foundation.e.dav4android.exception.UnauthorizedException: HTTP 401
at foundation.e.dav4android.DavResource.checkStatus(DavResource.kt:406)
at foundation.e.dav4android.DavResource.checkStatus(DavResource.kt:392)
at foundation.e.dav4android.DavResource.processMultiStatus(DavResource.kt:484)
at foundation.e.dav4android.DavResource.propfind(DavResource.kt:379)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:134)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:79)
at foundation.e.accountmanager.syncadapter.SyncManager.useRemote(SyncManager.kt:781)
at foundation.e.accountmanager.syncadapter.SyncManager.useRemoteCollection(SyncManager.kt:802)
at foundation.e.accountmanager.syncadapter.ContactsSyncManager.queryCapabilities(ContactsSyncManager.kt:132)
at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:122)
at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:59)
at foundation.e.accountmanager.syncadapter.SyncManager.unwrapExceptions(SyncManager.kt:807)
at foundation.e.accountmanager.syncadapter.SyncManager.performSync(SyncManager.kt:113)
at foundation.e.accountmanager.syncadapter.EeloContactsSyncAdapterService$ContactsSyncAdapter.sync(EeloContactsSyncAdapterService.kt:97)
at foundation.e.accountmanager.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:83)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)
SOFTWARE INFORMATION
Package: foundation.e.accountmanager
Version: 2.0.5-ose (248) from 2 oct. 2019
Installed from: APK (directly)
JB Workaround installed: no
CONNECTIVITY (at the moment)
Active connection: mobile, CONNECTED
CONFIGURATION
Power saving disabled: no
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: granted
org.dmfs.permission.WRITE_TASKS permission: granted
System-wide synchronization: manually
Account: xxx@e.email
Address book sync. interval: manually
Calendar sync. interval: manually
OpenTasks sync. interval: 2 min
WiFi only: true
[CardDAV] Contact group method: GROUP_VCARDS
[CalDAV] Time range (past days): 90
Manage calendar colors: true
Address book account: Contacts (xxx@e.email Ww)
Main account: Account {name=xxx@e.email, type=e.foundation.webdav.eelo}
URL: https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/contacts/
Sync automatically: true
SQLITE DUMP
android_metadata
| locale |
| fr_FR |
services
| _id | accountName | authState | accountType | addressBookAccountType | service | principal |
| 1 | xxx@e.email | | e.foundation.webdav.eelo | foundation.e.accountmanager.eelo.address_book | carddav | https://ecloud.global/remote.php/dav/principals/users/xxx@e.email/ |
| 2 | xxx@e.email | | e.foundation.webdav.eelo | foundation.e.accountmanager.eelo.address_book | caldav | https://ecloud.global/remote.php/dav/principals/users/xxx@e.email/ |
sqlite_sequence
| name | seq |
| services | 2 |
| homesets | 3 |
| collections | 3 |
homesets
| _id | serviceID | url |
| 2 | 2 | https://ecloud.global/remote.php/dav/calendars/xxx@e.email/ |
| 3 | 1 | https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/ |
collections
| _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
| 2 | 2 | CALENDAR | https://ecloud.global/remote.php/dav/calendars/xxx@e.email/personal/ | 1 | 1 | 0 | Personnel | | | | 1 | 1 | | 1 |
| 3 | 1 | ADDRESS_BOOK | https://ecloud.global/remote.php/dav/addressbooks/users/xxx@e.email/contacts/ | 1 | 1 | 0 | Contacts | | | | 0 | 0 | | 1 |
SYSTEM INFORMATION
Android version: 7.1.2 (FP2-userdebug 7.1.2 NJH47F 20200211 dev-keys)
Device: Fairphone FP2 (FP2)
Relevant screenshots
Solutions
Workaround
Possible fixes
ref (internal): https://community.e.foundation/t/gestionnaire-de-compte-2-0-5-ose-debug-info/12002