Removal of contacts updates local contact state, but is not reflected in the journal
This issue started in #114
Removing a contact from a frontend gets reflected in the local contract state of the device app. This change is visible after forcing local sync, multiple hours after the change, and from multiple independent frontends, including the native Samsung contacts app, as well as others. This however does not get reflected in the journal. Other platforms syncing from the same journal continue as if the contact was never removed. Take a look at the following screenshot, taken some time after I've removed a contract from the frontend:

This is the whole journal history for this address book. This is taken a few hours after removing "Test 3" from a frontend. The change seems to be reflected in the contact count - which says 2, but from the journal history we can deduce that there should be 3 contacts. Any frontend reading from this database will also only show 2 contacts, except my etesync-dav on my desktop, which shows the full 3 contacts, again, multiple hours after the change, with all syncing enabled etc. In the meantime I have edited a contact's details and the changes got properly propagated through the system.
I've added a contact Test 4 (with just a phone number as a field), waited it for it to get synced with the journal, confirmed that the contact is seen through my etesync-dav, and then removed the contact, synced, and waited again. The result is:

It states again, that there is only 1 contact in the contact state, yet the journal doesn't reflect the deletion.
Sorry for the long time it took me to reply. I'm trying to think what tests I can do to get more information. What's your exact device model and Android version? Additionally, what's your app version, and where did you install it from GPlay or F-Droid?
Just to confirm again: modifications work (as I see in the journal). Correct?
Galaxy S9 Exynos (SM-G960F); Android 10.0 stock from Samsung, unrooted; EteSync 1.12.0 from F-Droid For the last question - yes.
Could you maybe try uninstalling and then installing the gplay version? The benefit will be twofold.
- We can see if it's a weird fluke that's fixed by a reinstall.
- Once you have the gplay version I can send you APKs to try that will contain extra debug info.
Reinstalled from play store, removed a contract to test, observed the same behaviour. How could I provide you with more debug information?
Further clarification: After reinstallation, the contacts which I removed before updating (and which removals were not reflected in the journal) re-appeared in my contacts list.
I uploaded an apk that's signed with the released build (so it should cleanly install over your version). https://stosb.com/~tom/app-release.apk
Afterwards you should try to delete a new entry and then go to Settings -> Debug Info and share the debug info with me by mail, or alternatively open the debug info yourself and share here the lines that have XXX in them.
Remind me again, what's your android version, and device model?
Android 10, Galaxy S9 Exynos.
I can't install the update - I just get the message "update not installed" when I try to install the APK. Not sure why, I've enabled my phone to install apks from unknown sources. Perhaps there's a signature problem ?
It's signed with the release key, so it'll only install over the gplay version, not the f-droid one... You could also try re-installing the app and then trying to install this again.
I had the gplay version installed, not sure why it refused to install over. A clean reinstall did the job however.
I did the following: 1- reinstall 2- Have an address book titled "debug2" with 4 contacts. 3- remove a contact named "Test 4" from the "debug2" address book. 4- I let the device sit idle for ~2hrs to ensure everything had enough time to sync. I can confirm that when I open the journal, the top of the page says "3 contacts", whereas there isn't a journal entry for the removed contact, as has been reported previously. 5- I sent the debug info
I can try to debug it further if needed.
I'll be happy if you can remove the email when you're done.
Thanks. I deleted the email. There was nothing particularly interesting in the log, but what I did notice is that you have a lot of address books. This gave me an idea, could you maybe try reinstalling etesync, not add the existing account, try signing up for a new account, and trying to reproduce this with this new account?
Thanks, and sorry for the trouble. It's the first time I'm encountering anything like this.