{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/2065","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/2065/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/2065/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/2065/events","html_url":"https://github.com/nextcloud/android/issues/2065","id":292432019,"number":2065,"title":"Auto upload of photos fails","user":{"login":"DagNygren","id":1304673,"avatar_url":"https://avatars0.githubusercontent.com/u/1304673?v=4","gravatar_id":"","url":"https://api.github.com/users/DagNygren","html_url":"https://github.com/DagNygren","followers_url":"https://api.github.com/users/DagNygren/followers","following_url":"https://api.github.com/users/DagNygren/following{/other_user}","gists_url":"https://api.github.com/users/DagNygren/gists{/gist_id}","starred_url":"https://api.github.com/users/DagNygren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DagNygren/subscriptions","organizations_url":"https://api.github.com/users/DagNygren/orgs","repos_url":"https://api.github.com/users/DagNygren/repos","events_url":"https://api.github.com/users/DagNygren/events{/privacy}","received_events_url":"https://api.github.com/users/DagNygren/received_events","type":"User","site_admin":false},"labels":[{"id":388626761,"url":"https://api.github.com/repos/nextcloud/android/labels/bug","name":"bug","color":"ee0701","default":true},{"id":392415919,"url":"https://api.github.com/repos/nextcloud/android/labels/needs%20info/discussion","name":"needs info/discussion","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-01-29T14:43:48Z","updated_at":"2018-02-11T20:06:13Z","closed_at":null,"author_association":"NONE","body":"### Actual behaviour\r\n-Upload of photos fail. Uploads 1M and then fails with \"Unknown error\". Tried both the official release and master from today and both have the same problem. Secondly there should be a feature for uploading all the photos in the Camera folder for users just starting using Nextcloud. This obviously after the previous issue is solved :-)\r\n\r\n### Expected behaviour\r\n- Photos should upload without issues\r\n \r\n### Steps to reproduce\r\n1. Install Nextcloud for Android, either from Google Play or from github\r\n2. Take a photo\r\n3. Check the Uploads tab and see it fail. Pressing retry you can see it uploading approx 1M and then\r\n  fal with \"Unknown error\". BTW. Is there a way to get a REAL informative error message here? \"Unknown error\" is the most infuriating message you can get...\r\n\r\n\r\n### Environment data\r\nAndroid version: 7.1.2\r\n\r\nDevice model: Nokia 6\r\n\r\nStock or customized system: Stock\r\n\r\nNextcloud app version: 20180127\r\n\r\nNextcloud server version:12.0.5\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\nInsert your webserver log here\r\n[29/Jan/2018:16:30:26 +0200] \"PUT /remote.php/webdav/Nokia_6/Photos//2018/01/IMG_20180129_151701.jpg-chunking-19\r\n63162444-4-0 HTTP/1.1\" 400 225 \"-\" \"Mozilla/5.0 (Android) Nextcloud-android/20180127\"\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n{\"reqId\":\"Wm8t0bTOPpGqoW43KZyj5QAAAAI\",\"level\":4,\"time\":\"2018-01-29T14:21:05+00:00\",\"remoteAddr\":\"10.0.0.101\",\"user\":\"sanna\",\"app\":\"webdav\",\"method\":\"PUT\",\"url\":\"\\/remote.php\\/webdav\\/Nokia_6\\/Photos\\/\\/2018\\/01\\/IMG_20180129_151701.jpg-chunking-1963162444-4-0\",\"message\":\"Exception: {\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\BadRequest\\\",\\\"Message\\\":\\\"expected filesize 1024000 got 0\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/apps\\\\\\/dav\\\\\\/lib\\\\\\/Connector\\\\\\/Sabre\\\\\\/File.php(105): OCA\\\\\\\\DAV\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\File->createFileChunked(Resource id #8)\\\\n#1 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/apps\\\\\\/dav\\\\\\/lib\\\\\\/Connector\\\\\\/Sabre\\\\\\/Directory.php(151): OCA\\\\\\\\DAV\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\File->put(Resource id #8)\\\\n#2 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(1096): OCA\\\\\\\\DAV\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\Directory->createFile('IMG_20180129_15...', Resource id #8)\\\\n#3 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(525): Sabre\\\\\\\\DAV\\\\\\\\Server->createFile('Nokia_6\\\\\\/Photos\\\\\\/...', Resource id #8, NULL)\\\\n#4 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpPut(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#5 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#6 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(479): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:PUT', Array)\\\\n#7 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(254): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#8 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/apps\\\\\\/dav\\\\\\/appinfo\\\\\\/v1\\\\\\/webdav.php(76): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#9 \\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/remote.php(162): require_once('\\\\\\/usr\\\\\\/local\\\\\\/ownc...')\\\\n#10 {main}\\\",\\\"File\\\":\\\"\\\\\\/usr\\\\\\/local\\\\\\/owncloud\\\\\\/nextcloud-12.0.4\\\\\\/apps\\\\\\/dav\\\\\\/lib\\\\\\/Connector\\\\\\/Sabre\\\\\\/File.php\\\",\\\"Line\\\":415}\",\"userAgent\":\"Mozilla\\/5.0 (Android) Nextcloud-android\\/20180127\",\"version\":\"12.0.5.3\"}\r\n\r\n\r\nInsert your Nextcloud log here\r\n```\r\n**NOTE:** Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/364783164","html_url":"https://github.com/nextcloud/android/issues/2065#issuecomment-364783164","issue_url":"https://api.github.com/repos/nextcloud/android/issues/2065","id":364783164,"user":{"login":"DagNygren","id":1304673,"avatar_url":"https://avatars0.githubusercontent.com/u/1304673?v=4","gravatar_id":"","url":"https://api.github.com/users/DagNygren","html_url":"https://github.com/DagNygren","followers_url":"https://api.github.com/users/DagNygren/followers","following_url":"https://api.github.com/users/DagNygren/following{/other_user}","gists_url":"https://api.github.com/users/DagNygren/gists{/gist_id}","starred_url":"https://api.github.com/users/DagNygren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DagNygren/subscriptions","organizations_url":"https://api.github.com/users/DagNygren/orgs","repos_url":"https://api.github.com/users/DagNygren/repos","events_url":"https://api.github.com/users/DagNygren/events{/privacy}","received_events_url":"https://api.github.com/users/DagNygren/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T20:06:13Z","updated_at":"2018-02-11T20:06:13Z","author_association":"NONE","body":"Couldn't resist and downloaded the SDK and the latest GIT:s of the project + the nextcloud android library. \r\n\r\nFindings so far:\r\n\r\n- Enlarging the CHUNK_SIZE to 10M ( = no chunking) makes everything work...\r\n- Shrinking it to 512 MB still fails as before ( Meaning that we dont have a buffer problem in the phone I guess\r\n\r\nI will have a look if I can find the reason why it fails if chunking needed. Any hints?"}}
{"actor":{"display_login":"DagNygren"}}