{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22310","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22310/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22310/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22310/events","html_url":"https://github.com/owncloud/core/issues/22310","id":132930602,"number":22310,"title":"user data removed (on clients) when server-side storage not available","user":{"login":"umlaeute","id":214034,"avatar_url":"https://avatars.githubusercontent.com/u/214034?v=3","gravatar_id":"","url":"https://api.github.com/users/umlaeute","html_url":"https://github.com/umlaeute","followers_url":"https://api.github.com/users/umlaeute/followers","following_url":"https://api.github.com/users/umlaeute/following{/other_user}","gists_url":"https://api.github.com/users/umlaeute/gists{/gist_id}","starred_url":"https://api.github.com/users/umlaeute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umlaeute/subscriptions","organizations_url":"https://api.github.com/users/umlaeute/orgs","repos_url":"https://api.github.com/users/umlaeute/repos","events_url":"https://api.github.com/users/umlaeute/events{/privacy}","received_events_url":"https://api.github.com/users/umlaeute/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"},{"url":"https://api.github.com/repos/owncloud/core/labels/needs%20info","name":"needs info","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-11T09:58:52Z","updated_at":"2016-02-17T12:33:29Z","closed_at":"2016-02-12T18:21:46Z","body":"### Steps to reproduce\r\n1. put `ownload/data` on an NFS share\r\n2. make NFS share fail (e.g. unmount the share; power down the NFS-server while the oc-server boots,...)\r\n3. have the oc-clients automatically sync while the `owncloud/data` directory is empty.\r\n\r\n### Expected behaviour\r\nthe server tell the clients that it is currently *out-of-order*.\r\nthe client should then stop synching and try again after some time (10 minutes).\r\n\r\n### Actual behaviour\r\nthe server serves from the invalid (empty) `owncloud/data` directory.\r\nthe client syncs with the empty directory, removing all files previously synched.\r\n\r\n### Server configuration\r\n**Operating system**:\r\n\r\n`Debian/jessie 8.3 (amd64)`\r\n\r\n**Web server:**\r\n\r\n`apache 2.4.10-10+deb8u4`\r\n\r\n**Database:**\r\n\r\n`PostgreSQL 9.4.5-0+deb8u`\r\n\r\n**PHP version:**\r\n\r\n`5.6.17+dfsg-0+deb8u`\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n\r\n`7.0.4+dfsg-4~deb8u4`\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\n\r\nupdated\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\nn/a\r\n\r\n**List of activated apps:**\r\n\r\n- Enabled\r\n - activity\r\n - calendar\r\n - contacts\r\n - documents\r\n - files\r\n - files_pdfviewer\r\n - files_sharing\r\n - files_texteditor\r\n - files_trashbin\r\n - files_versions\r\n - files_videoviewer\r\n - firstrunwizard\r\n - gallery\r\n - search_lucene\r\n - user_ldap\r\n- Disabled:\r\n - admin_dependencies_chk\r\n - bookmarks\r\n - external\r\n - files_encryption\r\n - files_external\r\n - templateeditor\r\n - user_external\r\n - user_webdavauth\r\n\r\n**The content of config/config.php:**\r\n\r\n~~~\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'ocb6155c0dd2',\r\n  'dbtype' => 'pgsql',\r\n  'passwordsalt' => 'XXX',\r\n  'datadirectory' => '/usr/share/owncloud/data',\r\n  'version' => '7.0.4.2',\r\n  'appstoreenabled' => false,\r\n  'apps_paths' => \r\n  array (\r\n    0 => \r\n    array (\r\n      'path' => '/usr/share/owncloud/apps',\r\n      'url' => '/apps',\r\n      'writable' => false,\r\n    ),\r\n  ),\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'XXX',\r\n  'dbpassword' => 'XXX',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'forcessl' => true,\r\n  'theme' => 'example',\r\n  'loglevel' => '2',\r\n  'name' => 'iemCloud',\r\n  'title' => 'iemCloud',\r\n  'maintenance' => false,\r\n  'trusted_domains' => \r\n  array (\r\n    0 => 'cloud.example.com',\r\n    1 => 'cloud.local',\r\n  ),\r\n  'mail_from_address' => 'noc',\r\n  'mail_smtpmode' => 'smtp',\r\n  'mail_domain' => 'example.com',\r\n  'mail_smtphost' => 'mail.local',\r\n  'mail_smtpport' => '25',\r\n  'secret' => 'XXX',\r\n);\r\n~~~\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\nNFS\r\n\r\n**Are you using encryption:**\r\n\r\nyes (`https`)\r\n\r\nthe data itself is not encrypted on the storage.\r\n\r\n**Are you using an external user-backend, if yes which one:**\r\n\r\nLDAP\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n~~~\r\n+------------------------------+---------------------------------------------+\r\n| Configuration                | s02                                         |\r\n+------------------------------+---------------------------------------------+\r\n| hasMemberOfFilterSupport     |                                             |\r\n| hasPagedResultSupport        |                                             |\r\n| homeFolderNamingRule         |                                             |\r\n| lastJpegPhotoLookup          | 0                                           |\r\n| ldapAgentName                |                                             |\r\n| ldapAgentPassword            | ***                                         |\r\n| ldapAttributesForGroupSearch |                                             |\r\n| ldapAttributesForUserSearch  | cn;uid;gecos                                |\r\n| ldapBackupHost               |                                             |\r\n| ldapBackupPort               |                                             |\r\n| ldapBase                     | o=Staff,o=organization,dc=example,dc=com    |\r\n| ldapBaseGroups               | o=organization,dc=example,dc=com    |\r\n| ldapBaseUsers                | ou=people,o=Staff,o=organization,dc=example,dc=com  |\r\n| ldapCacheTTL                 | 600                                         |\r\n| ldapConfigurationActive      | 1                                           |\r\n| ldapEmailAttribute           | mail                                        |\r\n| ldapExperiencedAdmin         | 1                                           |\r\n| ldapExpertUUIDGroupAttr      |                                             |\r\n| ldapExpertUUIDUserAttr       |                                             |\r\n| ldapExpertUsernameAttr       |                                             |\r\n| ldapGroupDisplayName         | cn                                          |\r\n| ldapGroupFilter              |                                             |\r\n| ldapGroupFilterGroups        |                                             |\r\n| ldapGroupFilterMode          | 1                                           |\r\n| ldapGroupFilterObjectclass   | posixGroup                                  |\r\n| ldapGroupMemberAssocAttr     | uniqueMember                                |\r\n| ldapHost                     | ldaps://ldap.example.com                  |\r\n| ldapIgnoreNamingRules        |                                             |\r\n| ldapLoginFilter              | (&(|(objectclass=inetOrgPerson))(uid=%uid)) |\r\n| ldapLoginFilterAttributes    |                                             |\r\n| ldapLoginFilterEmail         | 0                                           |\r\n| ldapLoginFilterMode          | 1                                           |\r\n| ldapLoginFilterUsername      | 1                                           |\r\n| ldapNestedGroups             | 0                                           |\r\n| ldapNoCase                   | 0                                           |\r\n| ldapOverrideMainServer       | 0                                           |\r\n| ldapPagingSize               | 500                                         |\r\n| ldapPort                     | 636                                         |\r\n| ldapQuotaAttribute           |                                             |\r\n| ldapQuotaDefault             |                                             |\r\n| ldapTLS                      | 0                                           |\r\n| ldapUserDisplayName          | cn                                          |\r\n| ldapUserFilter               | (|(objectclass=inetOrgPerson))              |\r\n| ldapUserFilterGroups         |                                             |\r\n| ldapUserFilterMode           | 1                                           |\r\n| ldapUserFilterObjectclass    | inetOrgPerson                               |\r\n| ldapUuidGroupAttribute       | auto                                        |\r\n| ldapUuidUserAttribute        | auto                                        |\r\n| turnOffCertCheck             | 0                                           |\r\n+------------------------------+---------------------------------------------+\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/185180297","html_url":"https://github.com/owncloud/core/issues/22310#issuecomment-185180297","issue_url":"https://api.github.com/repos/owncloud/core/issues/22310","id":185180297,"user":{"login":"umlaeute","id":214034,"avatar_url":"https://avatars.githubusercontent.com/u/214034?v=3","gravatar_id":"","url":"https://api.github.com/users/umlaeute","html_url":"https://github.com/umlaeute","followers_url":"https://api.github.com/users/umlaeute/followers","following_url":"https://api.github.com/users/umlaeute/following{/other_user}","gists_url":"https://api.github.com/users/umlaeute/gists{/gist_id}","starred_url":"https://api.github.com/users/umlaeute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umlaeute/subscriptions","organizations_url":"https://api.github.com/users/umlaeute/orgs","repos_url":"https://api.github.com/users/umlaeute/repos","events_url":"https://api.github.com/users/umlaeute/events{/privacy}","received_events_url":"https://api.github.com/users/umlaeute/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T12:33:29Z","updated_at":"2016-02-17T12:33:29Z","body":"ah ok. than this is a non-problem.\r\n\r\n(one possible use would involve filesystem backups - where you have backed up the `.ocdata` file but don't want this directory to become a oc-volume ever; but i'm just making this up and don't have a real-world use-case at hand (i think))"}}