nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
550 stars 167 forks source link

adding new contact (from iphone) does not work (new item isnt in iphone nor nc) #3863

Open githubcmb opened 3 months ago

githubcmb commented 3 months ago

Describe the bug

contacts sync is in place for over 1 year through the various versions and worked 2 weeks back. I add a new contact on iphone (17.4.1) with fist-name = David and last-name=Pipapo, not supplying additional info. Press save. The contact is not in the iphone.And not in NC either. Adding same in NC (web access with FFox Browser on Mac) in the contacts app works well.

Steps to reproduce

  1. Go to iphone contacs app. in the list "all XXX-contacts" (the default in the iphone)
  2. Click on '+'
  3. Scroll down to 'Vorname' (first-name), enter David
  4. Next field "Nachname" (last-name), enter Pipapo
  5. press top right "Fertig" (not sure how that button is called in engl., maybe "add", not sure)

Expected behavior

Contact is added on iphone and in NC instance under default "contacts".

Actual behavior

not added, neither on iphone nor NC contacts anywhere

Contact version

5.5.3

Operating system

FreeBSD13.2-p11

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database

MariaDB

Additional info

iphone 17.4.1 Webserver log: 212.XX.151.59 - - [02/Apr/2024:13:31:01 +0200] "PROPFIND /nc/remote.php/dav/principals/users/myuser/ HTTP/2.0" 207 200 469 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:02 +0200] "PROPFIND /nc/remote.php/dav/addressbooks/users/myuser/ HTTP/2.0" 401 200 557 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:02 +0200] "PROPFIND /nc/remote.php/dav/addressbooks/users/myuser/ HTTP/2.0" 207 200 635 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:02 +0200] "REPORT /nc/remote.php/dav/addressbooks/users/myuser/contacts/ HTTP/2.0" 401 200 557 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:03 +0200] "REPORT /nc/remote.php/dav/addressbooks/users/myuser/contacts/ HTTP/2.0" 207 200 274 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:03 +0200] "PROPFIND /nc/remote.php/dav/addressbooks/users/myuser/z-app-generated--contactsinteraction--recent/ HTTP/2.0" 401 200 557 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0" 212.XX.151.59 - - [02/Apr/2024:13:31:03 +0200] "PROPFIND /nc/remote.php/dav/addressbooks/users/myuser/z-app-generated--contactsinteraction--recent/ HTTP/2.0" 207 200 307 TLSv1.3 TLS_AES_256_GCM_SHA384 "-" "iOS/17.4.1 (21E236) dataaccessd/1.0"

SebastianKrupinski commented 2 months ago

Hi @githubcmb

Is there any errors in the NC log?

githubcmb commented 2 months ago

Hi Sebastian

No error in NC Log whatsoever. I created an entry only with the name, but no address nor phone number, maybe that is the issue...When entering a phone number when creating it on the iPhone, it works.

On 2024-04-30 03:02, Sebastian Krupinski wrote:

Hi @githubcmb [1]

Is there any errors in the NC log?

-- Reply to this email directly, view it on GitHub [2], or unsubscribe [3]. You are receiving this because you were mentioned.Message ID: @.***>

Links:

[1] https://github.com/githubcmb [2] https://github.com/nextcloud/contacts/issues/3863#issuecomment-2084024726 [3] https://github.com/notifications/unsubscribe-auth/BAGYFBSSYDTKS3ZB74Q7I2DY73UTVAVCNFSM6AAAAABFTGZD3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGAZDINZSGY

SebastianKrupinski commented 2 months ago

Okay, I can test this with the information you provided, but what is the use case to create a contact with no phone, email or address?

githubcmb commented 2 months ago

Hi, the use case would be (as I had it), quickly enter a name /surname (while underway), and then later (at home) add the email address or phone number or both.

But it didn't alert me that is was (sliently) discarded. If it is clear, that you need a minimal set of fields that the entry can be created, inform the user that this doesn't work like that. (AS I am on iPhone, not sure if thats possible).

Thridly, make it clear in the docs or somewhere useful that such entries are not saved and are discarded.

On 2024-05-09 17:45, Sebastian Krupinski wrote:

Okay, I can test this with the information you provided, but what is the use case to create a contact with no phone, email or address?

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you were mentioned.Message ID: @.***>

Links:

[1] https://github.com/nextcloud/contacts/issues/3863#issuecomment-2102925218 [2] https://github.com/notifications/unsubscribe-auth/BAGYFBRSQHCZY37QWNN22YLZBOKZHAVCNFSM6AAAAABFTGZD3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSHEZDKMRRHA

dimitrij2k commented 1 month ago

Issue like githubcmb is here...

create contact over WhatsApp or Telefonapp -> contact lost / not on iphone & macbbok

create contact over Contact App -> synced to NC and all Devices (but im sure, last time it dont work, too) create contact on macbook -> synced to NC and all Devices

change contact on iphone -> synced to NC and all Devices change contact on macbook -> synced to NC and all Devices

SebastianKrupinski commented 1 week ago

@githubcmb i just tested creating a vcard using the CardDav protocol with only the FN (Full Name) parameter and N (structured name; first name; last name; etc) parameter, using a testing tool, in both cases this resulted in a contact being created in NC, which was then properly displayed in the interface.

This might be an issue with how iDevices handle contact creating with only a name and not actually an issue with NC.

The one thing I have noticed in your log output is that there is no PUT command being sent to the NC instance, only PROPFIND commands. Can you confirm that you see a PUT command in the logs when you create a contact with only a name?

@dimitrij2k can you also confirm that you see a PUT command in your logs when you create a contact from WhatsApp or Telefonapp