Simple-Contacts icon indicating copy to clipboard operation
Simple-Contacts copied to clipboard

Strange Groups (VCARD "Categories") behaviour when syncing with Nextcloud

Open michaelof opened this issue 5 years ago • 1 comments

v 6.13.0 F-Droid DAVx5 v 3.3.2-ose F-Droid

  • 31 new contacts are imported from Nextcloud via DAVx5 (school class from my little son :-) )
  • All of these 31 are in the same newly created Nextcloud addressbook,
  • All of these 31 are in the same newly created Nextcloud group (VCARD "categories")

Whyever, the newly created /imported group is shown 3 times instead if 1 time in Simple-Contacts:

  • 1 with 29 member
  • 1 with 1 member
  • 1 with 1 member

NO IDEA based on which criteria Simple-Contacts selected the two "outsiders"

For all other groups before the previous way of showing Groups by Simple-Contacts was a little suprising but reasonable: If e.g. a group "G" with altogether 10 contacts in Nextcloud, but 6 in addressbook "A", and 4 in addressbook "B", Simple-Contacts shows Group "G" two times, one with 6, one 4 members, based in their addressbooks.

But as said, these new contacts are all in the same addressbook

michaelof avatar Oct 14 '20 16:10 michaelof

Hi Tibor,

I've found the root cause for these surprising "outsiders", took me a while:

They are "assigned" separately in cases when your "aggressive merge" takes place:

In my case I've got a vcard addressbook file with ~ 30 vcard (parents of the school class of my little son). Loaded into my Nextcloud, synced to Simple-Contacts. Deleted from this vcard file the vcards for my wife and me before importing. But there are 2 mothers of my boys` friends, already in our Nexcloud before, separate contacts.

Means that inside Nextcloud we have 2 old + 2 newly imported records of the same persons. Being merged in SC and shown as just 2, but with their newly assigned CATEGORIES as "special guests" :)

BEFORE import into Nextcloud:

Name Group
... ...
Contact A whatever
Contact B who cares
... ...

AFTER import into Nextcloud:

Name Group
... ...
Contact A whatever
Contact B who cares
... ...
Contact A school of son
Contact B school of son
(28 more contacts) school of son

Shown in Simple-Contacts groups view as:

Group # contacts
... ...
whatever (correct #)
who cares (correct #)
school of son 28
school of son 1
school of son 1

Confusing, bur at least we know why now.

FYI: The CATEGORIES are "merged" correctly for the affected contacts by Simple-Contacts.

Regards, Michael

michaelof avatar Nov 03 '20 16:11 michaelof