{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/12991","labels_url":"https://api.github.com/repos/owncloud/core/issues/12991/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/12991/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/12991/events","html_url":"https://github.com/owncloud/core/issues/12991","id":52600459,"number":12991,"title":"Can not upload a file - permission denied","user":{"login":"SPQRInc","id":10261817,"avatar_url":"https://avatars.githubusercontent.com/u/10261817?v=3","gravatar_id":"","url":"https://api.github.com/users/SPQRInc","html_url":"https://github.com/SPQRInc","followers_url":"https://api.github.com/users/SPQRInc/followers","following_url":"https://api.github.com/users/SPQRInc/following{/other_user}","gists_url":"https://api.github.com/users/SPQRInc/gists{/gist_id}","starred_url":"https://api.github.com/users/SPQRInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SPQRInc/subscriptions","organizations_url":"https://api.github.com/users/SPQRInc/orgs","repos_url":"https://api.github.com/users/SPQRInc/repos","events_url":"https://api.github.com/users/SPQRInc/events{/privacy}","received_events_url":"https://api.github.com/users/SPQRInc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2014-12-21T17:11:43Z","updated_at":"2015-02-05T13:40:43Z","closed_at":null,"body":"I'm getting this error in OS X Sync Client.\r\n\r\nAt the moment I'm getting the following error:\r\n\r\n```\r\n15:38 Entwicklung/Bestia/V2/Entwicklung/com_bestia/admin/sql/install.mysql.utf8.sqlDocuments Das Hochladen dieser Datei ist nicht erlaubt, da die Datei auf dem Server schreibgeschützt ist, Wiederherstellung \r\n```\r\n\r\nwhich is in German:\r\n\r\n```\r\n15:38 Entwicklung/Bestia/V2/Entwicklung/com_bestia/admin/sql/install.mysql.utf8.sqlDocuments Uploading of this file is not allowed, because the file is readonly on the server. Restoring. \r\n```\r\n\r\nIf I delete this file via Web-Interface, I can upload it without problems.\r\n\r\nWhy is the client thinking, that this file is readonly? If it would be readonly, I could not delete it via Webinterface...?\r\n\r\nThe logs I got from the admin-cp of Webclient:\r\n```\r\nError\thook\terror while running hook (OCA\\Search_Lucene\\Hooks::indexFile): An exception occurred while executing 'INSERT INTO `oc_jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument' at row 1 2014-12-20T14:13:17+00:00\r\nError\thook\terror while running hook (OCA\\Search_Lucene\\Hooks::indexFile): An exception occurred while executing 'INSERT INTO `oc_jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument' at row 1 2014-12-20T14:12:33+00:00\r\nError\thook\terror while running hook (OCA\\Search_Lucene\\Hooks::indexFile): An exception occurred while executing 'INSERT INTO `oc_jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument' at row 1 2014-12-20T14:04:53+00:00\r\nError\thook\terror while running hook (OCA\\Search_Lucene\\Hooks::deleteFile): An exception occurred while executing 'INSERT INTO `oc_jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)': SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument' at row 1 2014-12-20T14:04:24+00:00\r\nError\tPHP\tCall to undefined function imagepng() at /Library/Server/Web/Data/Sites/cloud.example.com/lib/private/image.php#282\t2014-12-20T14:04:10+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T14:03:51+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T14:02:08+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T14:01:04+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T14:00:02+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T13:59:05+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T13:58:08+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T13:57:09+00:00\r\nFatal\twebdav\tSabre\\DAV\\Exception\\RequestedRangeNotSatisfiable: The start offset (3459) exceeded the size of the entity (3459)\t2014-12-20T13:56:08+00:00\r\n``"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/73047175","html_url":"https://github.com/owncloud/core/issues/12991#issuecomment-73047175","issue_url":"https://api.github.com/repos/owncloud/core/issues/12991","id":73047175,"user":{"login":"tkaufm","id":7903178,"avatar_url":"https://avatars.githubusercontent.com/u/7903178?v=3","gravatar_id":"","url":"https://api.github.com/users/tkaufm","html_url":"https://github.com/tkaufm","followers_url":"https://api.github.com/users/tkaufm/followers","following_url":"https://api.github.com/users/tkaufm/following{/other_user}","gists_url":"https://api.github.com/users/tkaufm/gists{/gist_id}","starred_url":"https://api.github.com/users/tkaufm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkaufm/subscriptions","organizations_url":"https://api.github.com/users/tkaufm/orgs","repos_url":"https://api.github.com/users/tkaufm/repos","events_url":"https://api.github.com/users/tkaufm/events{/privacy}","received_events_url":"https://api.github.com/users/tkaufm/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T13:40:43Z","updated_at":"2015-02-05T13:40:43Z","body":"Hi there, \r\n \r\ni had the same trouble with 2 users. One is using one machine with Debian 7, but had the problem some time ago. The other is syncing with 2 Mac-laptops (latest osx), but only got the problem on one laptop. In both cases rescanning the files didn't help, so i try resetting the sync-client (with F5 to force a rediscovering). Permissions and user on the server where ok and the same as of other files that synced correctly. I didn't need to change anything in the db by hand.\r\nI could get the following log from the mac-sync-client:\r\n\r\n\r\n```\r\n\r\n02-05 09:58:54:603 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Metadata/Properties.plist\"\r\n02-05 09:58:54:613 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview-micro.jpg\"\r\n02-05 09:58:54:615 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview.jpg\"\r\n02-05 09:58:54:617 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Metadata\"\r\n02-05 09:58:54:618 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview-web.jpg\"\r\n02-05 09:58:54:640 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:SYNC:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Index.zip\"\r\n\r\n\r\n02-05 09:58:54:725 0x7ff089e197f0 syncengine.cpp:899 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/Data\"\r\n02-05 09:58:54:726 0x7ff089e197f0 syncengine.cpp:912 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/Index.zip\"\r\n02-05 09:58:54:726 0x7ff089e197f0 syncengine.cpp:899 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/Metadata\"\r\n02-05 09:58:54:727 0x7ff089e197f0 syncengine.cpp:912 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/preview-micro.jpg\"\r\n02-05 09:58:54:728 0x7ff089e197f0 syncengine.cpp:912 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/preview-web.jpg\"\r\n02-05 09:58:54:728 0x7ff089e197f0 syncengine.cpp:912 checkForPermission: ERROR \"doc/letters/2013/ucef/recletter.pages/preview.jpg\"\r\n\r\n\r\n02-05 09:58:56:958 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:958 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/Data\" 2 \"Not allowed because you don't have permission to add sub-directories in that directory\"\r\n02-05 09:58:56:961 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Data\"\r\n02-05 09:58:56:964 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:965 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/Index.zip\" 2 \"Not allowed because you don't have permission to add files in that directory\"\r\n02-05 09:58:56:967 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Index.zip\"\r\n02-05 09:58:56:970 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:971 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/Metadata\" 2 \"Not allowed because you don't have permission to add sub-directories in that directory\"\r\n02-05 09:58:56:973 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/Metadata\"\r\n02-05 09:58:56:977 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:978 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/preview-micro.jpg\" 2 \"Not allowed because you don't have permission to add files in that directory\"\r\n02-05 09:58:56:980 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview-micro.jpg\"\r\n02-05 09:58:56:982 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:983 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/preview-web.jpg\" 2 \"Not allowed because you don't have permission to add files in that directory\"\r\n02-05 09:58:56:995 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview-web.jpg\"\r\n02-05 09:58:56:998 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n02-05 09:58:56:999 0x7ff089e197f0 syncengine.cpp:778 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem &) \"doc/letters/2013/ucef/recletter.pages/preview.jpg\" 2 \"Not allowed because you don't have permission to add files in that directory\"\r\n02-05 09:58:57:002 0x7ff089e197f0 socketapi.cpp:325 SocketApi:  Sending message:  \"STATUS:ERROR:/Users/user/oc/doc/letters/2013/ucef/recletter.pages/preview.jpg\"\r\n02-05 09:58:57:004 0x7ff089e197f0 owncloudpropagator.cpp:93 This error is not blacklisted  0\r\n```\r\n\r\n"}}