{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/contacts/issues/238","repository_url":"https://api.github.com/repos/owncloud/contacts","labels_url":"https://api.github.com/repos/owncloud/contacts/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/contacts/issues/238/comments","events_url":"https://api.github.com/repos/owncloud/contacts/issues/238/events","html_url":"https://github.com/owncloud/contacts/issues/238","id":142095567,"number":238,"title":"Around half of contact images are not loaded","user":{"login":"SamEliotFisher","id":11375752,"avatar_url":"https://avatars.githubusercontent.com/u/11375752?v=3","gravatar_id":"","url":"https://api.github.com/users/SamEliotFisher","html_url":"https://github.com/SamEliotFisher","followers_url":"https://api.github.com/users/SamEliotFisher/followers","following_url":"https://api.github.com/users/SamEliotFisher/following{/other_user}","gists_url":"https://api.github.com/users/SamEliotFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/SamEliotFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamEliotFisher/subscriptions","organizations_url":"https://api.github.com/users/SamEliotFisher/orgs","repos_url":"https://api.github.com/users/SamEliotFisher/repos","events_url":"https://api.github.com/users/SamEliotFisher/events{/privacy}","received_events_url":"https://api.github.com/users/SamEliotFisher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/contacts/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/contacts/milestones/4","html_url":"https://github.com/owncloud/contacts/milestones/1.1-next","labels_url":"https://api.github.com/repos/owncloud/contacts/milestones/4/labels","id":1633500,"number":4,"title":"1.1-next","description":"","creator":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":34,"state":"open","created_at":"2016-03-09T11:31:38Z","updated_at":"2016-03-20T01:21:12Z","due_on":"2016-03-22T23:00:00Z","closed_at":null},"comments":4,"created_at":"2016-03-19T19:46:38Z","updated_at":"2016-03-20T11:05:15Z","closed_at":null,"body":"Instead of the contact photo the broken image symbol of the browser is shown. Right click on it and \"show image\" or \"reload image\" didn't change it. The photos are correctly displayed iOS and Thunderbird.\r\n\r\n\r\n### Steps to reproduce\r\n1. Upgrade owncloud from latest 8.x to 9.0 via .tar.bz2\r\n2. Update all apps\r\n3. Sync contacts with iOS\r\n4. Open contacts web interface using Firefox\r\n\r\n### Expected behaviour\r\nDisplay all contacts.\r\n\r\n### Actual behaviour\r\n- Takes long time to display contacts (1 minute for 340 contacts) (I know this has been mentioned)\r\n- Sometimes doesn't show contacts at all\r\n- Only shows around half of the contact photos, rest is not loaded (broken image browser symbol)\r\n\r\nNote, besides from not loading the images some of the contact fields have weird values (and types), as well (for example: the organization field often has the value comma ','). I guess this is a separate issue.\r\n\r\n\r\n### Server configuration\r\n**Operating system**: \r\nUbuntu 14.04\r\n\r\n**Web server:**\r\nnginx \r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\nPHP 5.5.9-1ubuntu4.14 (fpm-fcgi) (built: Oct 28 2015 01:38:24)\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n9.0.0.19\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nUpgrade from latest 8.x\r\n\r\n**Where did you install ownCloud from:**\r\n.tar.bz2 from owncloud.org\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\n```\r\nNo errors have been found.\r\n```\r\n\r\n**List of activated apps:**\r\n\r\n```\r\n Enabled:\r\n  - activity: 2.2.1\r\n  - calendar: true\r\n  - comments: 0.2\r\n  - contacts: true\r\n  - dav: 0.1.5\r\n  - documents: true\r\n  - federatedfilesharing: 0.1.0\r\n  - federation: 0.0.4\r\n  - files: 1.4.4\r\n  - files_pdfviewer: 0.8\r\n  - files_sharing: 0.9.1\r\n  - files_texteditor: 2.1\r\n  - files_trashbin: 0.8.0\r\n  - files_versions: 1.2.0\r\n  - files_videoplayer: 0.9.8\r\n  - firstrunwizard: 1.1\r\n  - gallery: 14.5.0\r\n  - notifications: 0.2.3\r\n  - provisioning_api: 0.4.1\r\n  - systemtags: 0.2\r\n  - templateeditor: 0.1\r\n  - updatenotification: 0.1.0\r\nDisabled:\r\n  - announcementcenter\r\n  - encryption\r\n  - external\r\n  - files_external\r\n  - user_external\r\n  - user_ldap\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"oc8ab27a8968\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"example.com\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/owncloud\\/data\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/example.com\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"9.0.0.19\",\r\n        \"dbname\": \"owncloud\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"forcessl\": true,\r\n        \"mail_from_address\": \"admin\",\r\n        \"mail_smtpmode\": \"php\",\r\n        \"mail_domain\": \"example.com\",\r\n        \"maintenance\": false,\r\n        \"theme\": \"\",\r\n        \"forceSSLforSubdomains\": true,\r\n        \"loglevel\": 3,\r\n        \"trashbin_retention_obligation\": \"auto\",\r\n        \"appstore.experimental.enabled\": false,\r\n        \"mail_smtpauthtype\": \"LOGIN\",\r\n        \"mail_smtpauth\": 1,\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\Memcached\",\r\n        \"memcache.distributed\": \"\\\\OC\\\\Memcache\\\\Memcached\"\r\n    }\r\n}\r\n```\r\n\r\n**Are you using external storage, if yes which one:** \r\nNo\r\n\r\n**Are you using encryption:** \r\nNo\r\n\r\n**Are you using an external user-backend, if yes which one:** \r\nNo\r\n\r\n\r\n### Client configuration\r\n**Browser:**\r\nFirefox 45\r\n\r\n**Operating system:**\r\nWindows 10 64Bit\r\n\r\n### Logs\r\nOwncloud log and webserver not really related as not every call causes these lines. \r\n#### Web server error log\r\n```\r\n2016/03/19 20:22:24 [error] 32312#0: *1411 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.91.73.30, server: example.com, request: \"PROPFIND /remote.php/webdav/Software HTTP/1.1\", upstream: \"fastcgi://unix:/var/run/php5-fpm.sock\", host: \"example.com\"\r\n2016/03/19 20:22:46 [error] 32312#0: *1438 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.91.73.30, server: example.com, request: \"GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1\", upstream: \"fastcgi://unix:/var/run/php5-fpm.sock\", host: \"example.com\"\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"i4FFEdBdrTr85UkecHI2\",\"remoteAddr\":\"XXX.XX.XX.XX\",\"app\":\"core\",\"message\":\"Could not get application: cURL error 28: Resolving timed out after 5514 milliseconds\",\"level\":3,\"time\":\"2016-03-19T17:41:20+00:00\"}\r\n```\r\n\r\n#### Browser log\r\nFirst the error messages:\r\n```\r\nContent Security Policy: The page's settings blocked the loading of a resource at self (\"script-src https://example.com 'unsafe-eval'\").\r\nContent Security Policy: The page's settings blocked the loading of a resource at http://remote.php/dav/addressbooks (\"connect-src https://example.com\").\r\n```\r\nFull log:\r\n```\r\nGET https://example.com/core/img/breadcrumb.svg 304 Not Modified 88ms\t\r\nGET https://example.com/cron.php 200 OK 474ms\t\r\nGET https://example.com/ocs/v2.php/apps/notifications/api/v1/notifications?format=json 200 OK 290ms\t\r\nGET https://example.com/apps/contacts/templates/groupList.html 304 Not Modified 83ms\t\r\nGET https://example.com/apps/contacts/templates/addressBookList.html 304 Not Modified 124ms\t\r\nGET https://example.com/apps/contacts/templates/contactList.html 304 Not Modified 136ms\t\r\nGET https://example.com/apps/contacts/templates/contactDetails.html\t304 Not Modified 240ms\t\r\nGET https://example.com/apps/contacts/templates/group.html 304 Not Modified 106ms\t\r\nPROPFIND https://example.com/remote.php/dav/addressbooks 207 Multi-Status 317ms\t\r\nContent Security Policy: The page's settings blocked the loading of a resource at http://remote.php/dav/addressbooks (\"connect-src https://example.com\").\r\nPROPFIND https://example.com/remote.php/dav/principals/users/admin/ 207 Multi-Status 166ms\t\r\nPROPFIND https://example.com/remote.php/dav/addressbooks/users/admin/ 207 Multi-Status 148ms\t\r\nPROPFIND https://example.com/remote.php/dav/addressbooks/users/admin/contacts/ 207 Multi-Status\t893ms\t\r\nPROPFIND https://example.com/remote.php/dav/addressbooks/users/admin/ 207 Multi-Status 172ms\t\r\nREPORT https://example.com/remote.php/dav/addressbooks/users/admin/contacts/ 207 Multi-Status 50.77s\t\r\nPROPFIND https://example.com/remote.php/dav/addressbooks/users/admin/ 207 Multi-Status 273ms\t\r\nREPORT https://example.com/remote.php/dav/addressbooks/users/admin/contacts/ 207 Multi-Status 1m 28s\t\r\nGET https://example.com/ocs/v2.php/apps/notifications/api/v1/notifications?format=json 200 OK 587ms\t\r\nGET https://example.com/apps/contacts/templates/addressBook.html 200 OK 14ms\t\r\nGET https://example.com/ocs/v2.php/apps/notifications/api/v1/notifications?format=json\t200 OK 166ms\t\r\nGET https://example.com/ocs/v2.php/apps/notifications/api/v1/notifications?format=json\t200 OK 250ms\t\r\nGET https://example.com/apps/contacts/templates/contact.html 200 OK 39ms\r\n```\r\nsometimes:\r\n```\r\nREPORT https://example.com/remote.php/dav/addressbooks/users/admin/contacts/ 504 Gateway Time-out 1m\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/contacts/issues/comments/198898091","html_url":"https://github.com/owncloud/contacts/issues/238#issuecomment-198898091","issue_url":"https://api.github.com/repos/owncloud/contacts/issues/238","id":198898091,"user":{"login":"SamEliotFisher","id":11375752,"avatar_url":"https://avatars.githubusercontent.com/u/11375752?v=3","gravatar_id":"","url":"https://api.github.com/users/SamEliotFisher","html_url":"https://github.com/SamEliotFisher","followers_url":"https://api.github.com/users/SamEliotFisher/followers","following_url":"https://api.github.com/users/SamEliotFisher/following{/other_user}","gists_url":"https://api.github.com/users/SamEliotFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/SamEliotFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamEliotFisher/subscriptions","organizations_url":"https://api.github.com/users/SamEliotFisher/orgs","repos_url":"https://api.github.com/users/SamEliotFisher/repos","events_url":"https://api.github.com/users/SamEliotFisher/events{/privacy}","received_events_url":"https://api.github.com/users/SamEliotFisher/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T11:05:15Z","updated_at":"2016-03-20T11:05:15Z","body":"Editing the name in the web interface broke the contact photo also for Thunderbird. \r\niOS also received the change but the image is still showing correctly. \r\n\r\n![contact_thunderbird](https://cloud.githubusercontent.com/assets/11375752/13903918/2caa8b8e-ee8e-11e5-96a9-7277e5a93e94.png)\r\n\r\nHowever, I noticed a different inconvenience, changing the name of the contact in the web interface only changes the 'display name' the attributes 'forename' and 'last name' remain unchanged. \r\n\r\n_As a result, the contact name is not changed at all in the iOS app_ (see the '2' at the end of the display name in the Thunderbird or owncloud webinterface screenshot, not however on the iOS screenshot)\r\n\r\n![contact_screenshot2](https://cloud.githubusercontent.com/assets/11375752/13903988/f4ecfdf0-ee90-11e5-9431-9776beaa1193.png)\r\n![contact_ios](https://cloud.githubusercontent.com/assets/11375752/13903977/a170c3a0-ee90-11e5-909f-b97c815dcfa8.png)  \r\n\r\nWhen the contact is edited on iOS, the display name on owncloud and Thunderbird changes back to the one from iOS!  If this issue was unknown I will open a new ticket for it.\r\n"}}