{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/contacts/issues/371","repository_url":"https://api.github.com/repos/owncloud/contacts","labels_url":"https://api.github.com/repos/owncloud/contacts/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/contacts/issues/371/comments","events_url":"https://api.github.com/repos/owncloud/contacts/issues/371/events","html_url":"https://github.com/owncloud/contacts/issues/371","id":148997741,"number":371,"title":"Endless loading of Contacts screen (even for empty address books)","user":{"login":"h-2","id":2996863,"avatar_url":"https://avatars.githubusercontent.com/u/2996863?v=3","gravatar_id":"","url":"https://api.github.com/users/h-2","html_url":"https://github.com/h-2","followers_url":"https://api.github.com/users/h-2/followers","following_url":"https://api.github.com/users/h-2/following{/other_user}","gists_url":"https://api.github.com/users/h-2/gists{/gist_id}","starred_url":"https://api.github.com/users/h-2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-2/subscriptions","organizations_url":"https://api.github.com/users/h-2/orgs","repos_url":"https://api.github.com/users/h-2/repos","events_url":"https://api.github.com/users/h-2/events{/privacy}","received_events_url":"https://api.github.com/users/h-2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-17T21:16:29Z","updated_at":"2016-04-17T21:18:42Z","closed_at":null,"body":"### Steps to reproduce\r\n1. create a new user called \"test\"\r\n2. login in to owncloud and select \"contacts\"\r\n\r\nThis might be related to #298 (but there are no blanks in my case) or #311 (but it appears even for empty address books).\r\n\r\n### Expected behaviour\r\nYou see an empty address book.\r\n\r\n### Actual behaviour\r\n\r\n![scr](https://cloud.githubusercontent.com/assets/2996863/14589984/841246ec-04ef-11e6-9c0f-a9c884e0baeb.jpeg)\r\n\r\n\r\n### Server configuration\r\n**Operating system**: FreeBSD 10.1-RELEASE\r\n\r\n**Web server:** lighttpd-1.4.39\r\n\r\n**Database:** postgresql-9.3.12\r\n\r\n**PHP version:** php56-5.6.20\r\n\r\n**ownCloud version:** ownCloud 9.0.1 (stable)\r\n\r\n**Contacts version:** 1.1.0.0\r\n\r\n**Updated from an older ownCloud or fresh install:** updated from 8.2 IIRC\r\n\r\n**Signing status (ownCloud 9.0 and above):** \r\n\r\n```\r\n- core\r\n\t- EXTRA_FILE\r\n\t\t- resources/config/ca-bundle.crt.bak\r\n\t\t- pgsql_bak\r\n\t\t- pgsql_bak_20160417\r\n```\r\n\r\n**List of activated apps:**\r\n\r\n```\r\n% ./occ app:list\r\nThe process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php\r\nEnabled:\r\n  - activity: 2.2.1\r\n  - calendar: 1.1\r\n  - comments: 0.2\r\n  - contacts: 1.1.0.0\r\n  - dav: 0.1.6\r\n  - federatedfilesharing: 0.1.0\r\n  - federation: 0.0.4\r\n  - files: 1.4.4\r\n  - files_external: 0.5.2\r\n  - files_pdfviewer: 0.8\r\n  - files_sharing: 0.9.1\r\n  - files_texteditor: 2.1\r\n  - files_videoplayer: 0.9.8\r\n  - firstrunwizard: 1.1\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  - encryption\r\n  - external\r\n  - files_embeddedvideo\r\n  - files_trashbin\r\n  - files_versions\r\n  - gallery\r\n  - tasks\r\n  - user_external\r\n  - user_ldap\r\n  - vids\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'FOO',\r\n  'passwordsalt' => 'BAR',\r\n  'secret' => 'BAX',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => '192.168.3.202',\r\n    1 => 'BAT',\r\n  ),\r\n  'datadirectory' => '/usr/local/www/owncloud/data',\r\n  'overwrite.cli.url' => 'http://192.168.3.202',\r\n  'dbtype' => 'pgsql',\r\n  'version' => '9.0.1.3',\r\n  'installed' => true,\r\n  'forcessl' => true,\r\n  'maintenance' => false,\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => '192.168.3.203',\r\n  'dbuser' => 'oc_user',\r\n  'dbpassword' => '',\r\n  'loglevel' => 1,\r\n  'theme' => '',\r\n  'appcodechecker' => false,\r\n  'mail_smtpmode' => 'sendmail',\r\n  'mail_from_address' => 'owncloud',\r\n  'mail_domain' => 'BAT',\r\n);\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n\r\n### Client configuration\r\n**Browser:** Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0\r\n\r\n**Operating system:** Debian OLD stable\r\n\r\n**CardDAV-clients:** irrelevant\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\n2016-04-17 19:43:12: (mod_fastcgi.c.2520) FastCGI-stderr: PHP Fatal error:  require_once(): Failed opening required '/usr/local/www/owncloud/apps/contacts/appinfo/remote.php' (include_path='/usr/local/www/owncloud/3rdparty/pear/console_getopt:/usr/local/www/owncloud/3rdparty/pear/pear_exception:/usr/local/www/owncloud/3rdparty/pear/pear-core-minimal/src:/usr/local/www/owncloud/3rdparty/pear/archive_tar:/usr/local/www/owncloud/3rdparty/phpseclib/phpseclib/phpseclib:/usr/local/www/owncloud/lib/private:/usr/local/www/owncloud/config:/usr/local/www/owncloud/3rdparty:/usr/local/www/owncloud/apps:.:/usr/local/share/pear:/usr/local/www/owncloud') in /usr/local/www/owncloud/remote.php on line 138\r\n2016-04-17 20:36:26: (connections.c.291) SSL: 1 error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol \r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n[...]\r\n{\"reqId\":\"k1fqGGyXjbE80YnLr5aI\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"array_values() expects parameter 1 to be array, null given at \\/usr\\/local\\/www\\/owncloud\\/apps\\/files_external\\/service\\/storagesservice.php#91\",\"level\":3,\"time\":\"2016-04-17T19:40:38+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/contacts\\/\",\"user\":\"hannes\"}\r\n{\"reqId\":\"k1fqGGyXjbE80YnLr5aI\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"array_values() expects parameter 1 to be array, null given at \\/usr\\/local\\/www\\/owncloud\\/apps\\/files_external\\/service\\/storagesservice.php#92\",\"level\":3,\"time\":\"2016-04-17T19:40:38+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/contacts\\/\",\"user\":\"hannes\"}\r\n{\"reqId\":\"k1fqGGyXjbE80YnLr5aI\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/usr\\/local\\/www\\/owncloud\\/apps\\/files_external\\/lib\\/storageconfig.php#217\",\"level\":3,\"time\":\"2016-04-17T19:40:38+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/contacts\\/\",\"user\":\"hannes\"}\r\n{\"reqId\":\"k1fqGGyXjbE80YnLr5aI\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/usr\\/local\\/www\\/owncloud\\/apps\\/files_external\\/lib\\/config\\/configadapter.php#75\",\"level\":3,\"time\":\"2016-04-17T19:40:38+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/apps\\/contacts\\/\",\"user\":\"hannes\"}\r\n{\"reqId\":\"vS4liFmjUjUXBLorDudj\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"require_once(\\/usr\\/local\\/www\\/owncloud\\/apps\\/contacts\\/appinfo\\/remote.php): failed to open stream: No such file or directory at \\/usr\\/local\\/www\\/owncloud\\/remote.php#138\",\"level\":3,\"time\":\"2016-04-17T19:43:12+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/remote.php\\/carddav\\/addressbooks\\/betti\\/kontakte\\/\",\"user\":\"--\"}\r\n{\"reqId\":\"vS4liFmjUjUXBLorDudj\",\"remoteAddr\":\"X.X.X.X\",\"app\":\"PHP\",\"message\":\"require_once(): Failed opening required '\\/usr\\/local\\/www\\/owncloud\\/apps\\/contacts\\/appinfo\\/remote.php' (include_path='\\/usr\\/local\\/www\\/owncloud\\/3rdparty\\/pear\\/console_getopt:\\/usr\\/local\\/www\\/owncloud\\/3rdparty\\/pear\\/pear_exception:\\/usr\\/local\\/www\\/owncloud\\/3rdparty\\/pear\\/pear-core-minimal\\/src:\\/usr\\/local\\/www\\/owncloud\\/3rdparty\\/pear\\/archive_tar:\\/usr\\/local\\/www\\/owncloud\\/3rdparty\\/phpseclib\\/phpseclib\\/phpseclib:\\/usr\\/local\\/www\\/owncloud\\/lib\\/private:\\/usr\\/local\\/www\\/owncloud\\/config:\\/usr\\/local\\/www\\/owncloud\\/3rdparty:\\/usr\\/local\\/www\\/owncloud\\/apps:.:\\/usr\\/local\\/share\\/pear:\\/usr\\/local\\/www\\/owncloud') at \\/usr\\/local\\/www\\/owncloud\\/remote.php#138\",\"level\":3,\"time\":\"2016-04-17T19:43:12+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/remote.php\\/carddav\\/addressbooks\\/betti\\/kontakte\\/\",\"user\":\"--\"}\r\n```\r\n\r\n#### Browser log\r\n```\r\nUsing //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1\r\nhttps://FOO/core/vendor/jquery/jquery.min.js?v=f231ce119c0dc2e7074f07fd5781e2ae is being assigned a //# sourceMappingURL, but already has one\r\nhttps://FOO/apps/contacts/js/vendor/angular-cache/dist/angular-cache.js?v=f231ce119c0dc2e7074f07fd5781e2ae is being assigned a //# sourceMappingURL, but already has one\r\nmutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create dav.js:3072\r\nhttps://FOO/apps/contacts/js/public/script.js?v=f231ce119c0dc2e7074f07fd5781e2ae is being assigned a //# sourceMappingURL, but already has one\r\nUse of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:5\r\nError: [$rootScope:inprog] $digest already in progress\r\nhttp://errors.angularjs.org/1.5.0/$rootScope/inprog?p0=%24digest\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/contacts/issues/comments/211117717","html_url":"https://github.com/owncloud/contacts/issues/371#issuecomment-211117717","issue_url":"https://api.github.com/repos/owncloud/contacts/issues/371","id":211117717,"user":{"login":"h-2","id":2996863,"avatar_url":"https://avatars.githubusercontent.com/u/2996863?v=3","gravatar_id":"","url":"https://api.github.com/users/h-2","html_url":"https://github.com/h-2","followers_url":"https://api.github.com/users/h-2/followers","following_url":"https://api.github.com/users/h-2/following{/other_user}","gists_url":"https://api.github.com/users/h-2/gists{/gist_id}","starred_url":"https://api.github.com/users/h-2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-2/subscriptions","organizations_url":"https://api.github.com/users/h-2/orgs","repos_url":"https://api.github.com/users/h-2/repos","events_url":"https://api.github.com/users/h-2/events{/privacy}","received_events_url":"https://api.github.com/users/h-2/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T21:18:42Z","updated_at":"2016-04-17T21:18:42Z","body":"Could be a duplicate of #295 however I want to stress that this happens for empty address books, too, so it seems unrelated too any non-standard characters anywhere."}}