<!--
Please report only issues corresponding to the contacts app for Nextcloud.…
Migration and CardDAV issues belong in the server repo!
https://github.com/nextcloud/server/issues
-->
### Steps to reproduce
1. complete nextcloud / php / nginx (incl. well-known rewrite) install on archlinux with all packages up-to-date
2. activate contacts app in nextcloud interface
3. connect to nextcloud user address book with macos 10.13.5 contacts app as client
4. connect to nextcloud user address book with ios 11.4 contacts app as client
### Expected behaviour
Both clients should be able to see, read and write to the address book and should reflect changes, additions and deletions.
### Actual behaviour
The behaviour on the ios client is fine and matches everything that happens in the the nextlcoud contacts.
The problem occurs with the macos contacts client. If you create a contact on macos it gets synced and appears in nextcloud. But a contact created in nextcloud or in ios does not show up in macos. And if you delete a contact in nextcloud or ios it does not get deleted in macos contacts app.
### Server configuration
<!--
You can use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
-->
**Operating system**:
archlinux
**Web server:**
nginx
**Database:**
mariadb
**PHP version:**
7.2.7-1
**Nextcloud version:** (see Nextcloud admin page)
13.0.4-1
**Contacts version:** (see Nextcloud apps page)
2.1.5-1
**Updated from an older Nextcloud or fresh install:**
fresh contacts install
**Signing status:**
```
No errors have been found.
```
**List of activated apps:**
```
Enabled:
- activity: 2.6.1
- calendar: 1.6.1
- comments: 1.3.0
- contacts: 2.1.5
- dav: 1.4.7
- federatedfilesharing: 1.3.1
- federation: 1.3.0
- files: 1.8.0
- files_pdfviewer: 1.2.1
- files_sharing: 1.5.0
- files_texteditor: 2.5.1
- files_trashbin: 1.3.0
- files_versions: 1.6.0
- files_videoplayer: 1.2.0
- firstrunwizard: 2.2.1
- gallery: 18.0.0
- logreader: 2.0.0
- lookup_server_connector: 1.1.0
- nextcloud_announcements: 1.2.0
- notifications: 2.1.2
- oauth2: 1.1.1
- password_policy: 1.3.0
- provisioning_api: 1.3.0
- serverinfo: 1.3.0
- sharebymail: 1.3.0
- survey_client: 1.1.0
- systemtags: 1.3.0
- theming: 1.4.5
- twofactor_backupcodes: 1.2.3
- updatenotification: 1.3.0
- workflowengine: 1.3.0
Disabled:
- admin_audit
- bookmarks
- encryption
- files_external
- tasks
- user_external
- user_ldap
```
**Nextcloud configuration:**
```
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"192.168.1.205",
"mydomain.org",
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"version": "13.0.4.0",
"dbtype": "mysql",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"installed": true,
"default_language": "de",
"defaultapp": "files",
"knowledgebaseenabled": true,
"enable_avatars": true,
"allow_user_to_change_display_name": true,
"remember_login_cookie_lifetime": 1296000,
"session_lifetime": 86400,
"session_keepalive": true,
"token_auth_enforced": false,
"auth.bruteforce.protection.enabled": false,
"skeletondirectory": "\/usr\/share\/webapps\/nextcloud\/core\/skeleton",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpdebug": false,
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtptimeout": 10,
"mail_smtpauthtype": "LOGIN",
"overwritehost": "",
"overwriteprotocol": "",
"overwritewebroot": "",
"overwritecondaddr": "",
"overwrite.cli.url": "http:\/\/localhost",
"htaccess.RewriteBase": "\/",
"htaccess.IgnoreFrontController": false,
"trashbin_retention_obligation": "auto",
"versions_retention_obligation": "auto",
"appcodechecker": true,
"updatechecker": true,
"updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/",
"updater.release.channel": "stable",
"has_internet_connection": true,
"check_for_working_webdav": true,
"check_for_working_wellknown_setup": true,
"check_for_working_htaccess": true,
"config_is_read_only": false,
"log_type": "file",
"logfile": "\/var\/log\/nextcloud.log",
"loglevel": 2,
"syslog_tag": "Nextcloud",
"logtimezone": "Europe\/Berlin",
"log_query": false,
"cron_log": true,
"log_rotate_size": false,
"customclient_desktop": "https:\/\/nextcloud.com\/install\/#install-clients",
"customclient_android": "https:\/\/play.google.com\/store\/apps\/details?id=com.nextcloud.client",
"customclient_ios": "https:\/\/itunes.apple.com\/us\/app\/nextcloud\/id1125420102?mt=8",
"appstoreenabled": true,
"apps_paths": [
{
"path": "\/usr\/share\/webapps\/nextcloud\/apps",
"url": "\/apps",
"writable": true
}
],
"enable_previews": true,
"preview_max_scale_factor": 10,
"preview_max_filesize_image": -1,
"preview_libreoffice_path": "\/usr\/bin\/libreoffice",
"preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir ",
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown"
],
"ldapUserCleanupInterval": 51,
"comments.managerFactory": "\\OC\\Comments\\ManagerFactory",
"systemtags.managerFactory": "\\OC\\SystemTag\\ManagerFactory",
"maintenance": false,
"singleuser": false,
"openssl": [],
"enable_certificate_management": false,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"password": "***REMOVED SENSITIVE VALUE***"
},
"memcached_servers": [
[
"localhost",
11211
]
],
"memcached_options": {
"14": 50,
"15": 50,
"19": 50,
"20": 50,
"8": 50,
"-1001": true,
"16": true,
"18": true
},
"cache_path": "",
"cache_chunk_gc_ttl": 86400,
"sharing.managerFactory": "\\OC\\Share20\\ProviderFactory",
"dbdriveroptions": {
"1002": "SET wait_timeout = 28800"
},
"sqlite.journal_mode": "DELETE",
"mysql.utf8mb4": true,
"supportedDatabases": [
"sqlite",
"mysql",
"pgsql",
"oci"
],
"hashingCost": 10,
"blacklisted_files": [
".htaccess"
],
"share_folder": "\/",
"theme": "custom",
"cipher": "AES-256-CFB",
"minimum.supported.desktop.version": "2.0.0",
"quota_include_external_storage": false,
"filesystem_check_changes": 0,
"part_file_in_storage": true,
"mount_file": "\/data\/cloud\/nextcloud\/data\/mount.json",
"filesystem_cache_readonly": false,
"secret": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED",
"HTTP_FORWARDED_FOR"
],
"max_filesize_animated_gifs_public_sharing": 10,
"filelocking.enabled": true,
"filelocking.ttl": 3600,
"upgrade.disable-web": false,
"debug": false,
"data-fingerprint": "",
"copied_sample_config": false,
"dbport": "",
"mail_smtpsecure": "ssl",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
}
}
```
**Are you using external storage, if yes which one:** local/smb/sftp/...
no
**Are you using encryption:** yes/no
no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
no
### Client configuration
**Browser:**
Safari
**Operating system:**
macos 10.13.5
ios 11.4
**CardDAV-clients:**
macos contacts
ios addresss book
### Logs
#### Web server error log
the webserver log starts with creating a new contact on ios, then syncs it to nextcloud and then opening macos contacts, the contact does not show up in macos contacts afterwards
```
172.16.2.40 - - [24/Jun/2018:11:06:10 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 401 569 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:11 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 285 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - - [24/Jun/2018:11:06:11 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 401 569 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:11 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 207 1495 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - - [24/Jun/2018:11:06:11 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 401 569 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:11 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 207 3393 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:12 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 285 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:15 +0200] "OPTIONS /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 200 0 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - - [24/Jun/2018:11:06:17 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 401 569 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:17 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 207 1495 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - - [24/Jun/2018:11:06:17 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 401 569 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:18 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 207 3400 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:19 +0200] "PUT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/E044DF69-9E12-466A-907D-F5291BFBC52B.vcf HTTP/1.1" 201 0 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:19 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 600 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:22 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 285 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:24 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 207 1495 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:25 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 207 3393 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:25 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 285 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.40 - user [24/Jun/2018:11:06:26 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 207 285 "-" "iOS/12.0 (16A5308e) dataaccessd/1.0"
172.16.2.32 - - [24/Jun/2018:11:06:54 +0200] "OPTIONS /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 401 569 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
172.16.2.32 - user [24/Jun/2018:11:06:54 +0200] "OPTIONS /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 200 0 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
172.16.2.32 - user [24/Jun/2018:11:06:54 +0200] "PROPFIND /nextcloud/remote.php/dav/principals/users/user/ HTTP/1.1" 207 1495 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
172.16.2.32 - - [24/Jun/2018:11:06:54 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 401 569 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
172.16.2.32 - user [24/Jun/2018:11:06:54 +0200] "PROPFIND /nextcloud/remote.php/dav/addressbooks/users/user/ HTTP/1.1" 207 3400 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
172.16.2.32 - user [24/Jun/2018:11:06:55 +0200] "REPORT /nextcloud/remote.php/dav/addressbooks/users/user/contacts/ HTTP/1.1" 403 5 "-" "Mac OS X/10.13.5 (17F77) AddressBook/1808.7"
```
#### Nextcloud log (data/nextcloud.log)
```
no log entries
```
<bountysource-plugin>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/60055795-macos-contacts-app-does-not-reflect-adding-or-deleting-contacts?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github).
</bountysource-plugin>