{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/files_antivirus/issues/110","repository_url":"https://api.github.com/repos/owncloud/files_antivirus","labels_url":"https://api.github.com/repos/owncloud/files_antivirus/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/files_antivirus/issues/110/comments","events_url":"https://api.github.com/repos/owncloud/files_antivirus/issues/110/events","html_url":"https://github.com/owncloud/files_antivirus/issues/110","id":150816962,"number":110,"title":"Antivirus app prevents upload from official Owncloud Android client app > 1MiB","user":{"login":"e-alfred","id":10073629,"avatar_url":"https://avatars.githubusercontent.com/u/10073629?v=3","gravatar_id":"","url":"https://api.github.com/users/e-alfred","html_url":"https://github.com/e-alfred","followers_url":"https://api.github.com/users/e-alfred/followers","following_url":"https://api.github.com/users/e-alfred/following{/other_user}","gists_url":"https://api.github.com/users/e-alfred/gists{/gist_id}","starred_url":"https://api.github.com/users/e-alfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-alfred/subscriptions","organizations_url":"https://api.github.com/users/e-alfred/orgs","repos_url":"https://api.github.com/users/e-alfred/repos","events_url":"https://api.github.com/users/e-alfred/events{/privacy}","received_events_url":"https://api.github.com/users/e-alfred/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-25T10:32:27Z","updated_at":"2016-11-28T20:56:57Z","closed_at":null,"body":"<!--\nThanks for reporting issues back to ownCloud! This is the issue tracker of ownCloud, if you have any support question please check out https://owncloud.org/support\n\nThis is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/CONTRIBUTING.md#guidelines\n\nFor reporting potential security issues please see https://owncloud.org/security/\n\nTo make it possible for us to help you please fill out below information carefully.\n--> \n### Steps to reproduce\n1. Install and activate antivirus app in Owncloud\n2. Upload file bigger than 1MiB using the official Android Owncloud app\n### Expected behaviour\n\nThe selected file should be uploaded and scanned from the Android phone to Owncloud.\n### Actual behaviour\n\nThe upload fails after some chunk is scanned by the Antivirus app/Clamav. If I disable the Antivirus app everything works fine.\n### Server configuration\n\n**Operating system**: Ubuntu 14.04.5 Server\n\n**Web server:** Apache 2.4.7\n\n**Database:** 5.5.49\n\n**PHP version:** 5.5.9\n\n**ownCloud version:** 8.2.3\n\n**Updated from an older ownCloud or fresh install:** 8.1\n\n**Where did you install ownCloud from:** Owncloud deb repository\n\n**List of activated apps:**\n\n```\nEnabled:\n  - activity: 2.1.4\n  - bookmarks: 0.7.1\n  - calendar: 0.8.2\n  - checksum: 2.0\n  - contacts: 0.5.0.0\n  - documents: 0.11.1\n  - external: 1.2\n  - files: 1.2.1\n  - files_clipboard: 0.4.2\n  - files_epubviewer: 7.0.5\n  - files_external: 0.3.0\n  - files_pdfviewer: 0.7\n  - files_reader: 0.7.1\n  - files_sharing: 0.7.0\n  - files_texteditor: 2.0\n  - files_trashbin: 0.7.0\n  - files_versions: 1.1.0\n  - files_videoviewer: 0.1.3\n  - firstrunwizard: 1.1\n  - flowupload: 0.2\n  - gallery: 14.2.0\n  - html5_videoplayer: 1.0\n  - imprint: 0.2.5\n  - maps: 0.0.6\n  - music: 0.3.11\n  - news: 7.1.2\n  - notifications: 0.1.0\n  - ocdownloader: 1.5\n  - ownbackup: 0.3.8\n  - ownnote: 1.07\n  - passwords: 18.0\n  - pinit: 1.0.1\n  - provisioning_api: 0.3.0\n  - rainloop: 4.9\n  - search_lucene: 0.7.0\n  - secure_container: 0.0.6\n  - sharelinks: 1.1.0\n  - sketch: 0.1.2\n  - tasks: 0.8.1\n  - templateeditor: 0.1\n  - weather: 1.3.1\n  - files_antivirus 0.8.0.1\nDisabled:\n  - encryption\n  - ojsxc\n  - user_external\n  - user_ldap\n```\n\n**The content of config/config.php:**\n\n```\n{\n    \"system\": {\n        \"instanceid\": \"ocb9d94613a4\",\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\n        \"trusted_domains\": [\n            \"***REMOVED SENSITIVE VALUE***\"\n        ],\n        \"datadirectory\": \"\\/var\\/www\\/owncloud\\/data\",\n        \"dbtype\": \"mysql\",\n        \"version\": \"8.2.3.2\",\n        \"installed\": true,\n        \"mail_from_address\": \"***REMOVED SENSITIVE VALUE***\",\n        \"mail_smtpmode\": \"smtp\",\n        \"mail_domain\": \"***REMOVED SENSITIVE VALUE***\",\n        \"forcessl\": true,\n        \"mail_smtpauthtype\": \"PLAIN\",\n        \"mail_smtpauth\": true,\n        \"mail_smtppassword\": \"***REMOVED SENSITIVE VALUE***\",\n        \"mail_smtphost\": \"***REMOVED SENSITIVE VALUE***\",\n        \"mail_smtpport\": \"587\",\n        \"mail_smtpname\": \"***REMOVED SENSITIVE VALUE***\",\n        \"mail_smtpsecure\": \"tls\",\n        \"filesystem_check_changes\": 1,\n        \"theme\": \"\",\n        \"maintenance\": false,\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\n        \"overwrite.cli.url\": \"***REMOVED SENSITIVE VALUE***\",\n        \"forceSSLforSubdomains\": true,\n        \"loglevel\": 0,\n        \"logtimezone\": \"Europe\\/Vienna\",\n        \"custom_csp_policy\": \"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *\",\n        \"dbname\": \"owncloud\",\n        \"dbhost\": \"localhost\",\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\n        \"appstore.experimental.enabled\": true,\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\n        \"trashbin_retention_obligation\": \"auto\"\n    }\n}\n```\n\n**Are you using encryption:** no\n### Client configuration\n\n**Browser:** Owncloud Android App 1.9.1\n\n**Operating system:** Android 6.0\n### Logs\n#### Owncloud server log\n\n```\n{\"reqId\":\"Vx1CdH8AAQEAAFWMwccAAAAF\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent by (output started at \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/http\\/lib\\/Sapi.php:70) at \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/http\\/lib\\/Sapi.php#58\",\"level\":3,\"time\":\"2016-04-25T00:02:29+02:00\",\"method\":\"HEAD\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/\"}\n{\"reqId\":\"Vx1CdX8AAQEAAFWMwcgAAAAF\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"webdav\",\"message\":\"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 404 File with name SofortUpload\\\\\\/IMG_20160424_120630.jpg could not be located\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\NotFound\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(78): OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\ObjectTree->getNodeForPath('SofortUpload\\\\\\/IM...', 0)\\\\n#1 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpGet(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(469): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:GET', Array)\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(253): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#5 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpHead(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#6 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(469): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:HEAD', Array)\\\\n#8 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(254): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/apps\\\\\\/files\\\\\\/appinfo\\\\\\/remote.php(56): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#10 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/remote.php(137): require_once('\\\\\\/var\\\\\\/www\\\\\\/ownclo...')\\\\n#11 {main}\\\",\\\"File\\\":\\\"\\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/objecttree.php\\\",\\\"Line\\\":159}\",\"level\":0,\"time\":\"2016-04-25T00:02:29+02:00\",\"method\":\"HEAD\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/IMG_20160424_120630.jpg\"}\n{\"reqId\":\"Vx1CdX8AAQEAAFWMwckAAAAF\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"files_antivirus\",\"message\":\"Exit code :: 0 Response :: stdin: OK\\n\\n----------- SCAN SUMMARY -----------\\nKnown viruses: 4300043\\nEngine version: 0.98.7\\nScanned directories: 0\\nScanned files: 1\\nInfected files: 0\\nData scanned: 0.98 MB\\nData read: 0.98 MB (ratio 1.01:1)\\nTime: 10.368 sec (0 m 10 s)\\n\",\"level\":0,\"time\":\"2016-04-25T00:02:40+02:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/IMG_20160424_120630.jpg-chunking-6189-5-0\"}\n{\"reqId\":\"Vx1CdX8AAQEAAFWMwckAAAAF\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"webdav\",\"message\":\"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 400 expected filesize 1024000 got 0\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\BadRequest\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/file.php(101): OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\File->createFileChunked(Resource id #57)\\\\n#1 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/directory.php(115): OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\File->put(Resource id #57)\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(1053): OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\Directory->createFile('IMG_20160424_12...', Resource id #57)\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(513): Sabre\\\\\\\\DAV\\\\\\\\Server->createFile('SofortUpload\\\\\\/IM...', Resource id #57, NULL)\\\\n#4 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpPut(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#5 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#6 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(469): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:PUT', Array)\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(254): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#8 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/apps\\\\\\/files\\\\\\/appinfo\\\\\\/remote.php(56): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/remote.php(137): require_once('\\\\\\/var\\\\\\/www\\\\\\/ownclo...')\\\\n#10 {main}\\\",\\\"File\\\":\\\"\\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/file.php\\\",\\\"Line\\\":381}\",\"level\":4,\"time\":\"2016-04-25T00:02:40+02:00\",\"method\":\"PUT\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/IMG_20160424_120630.jpg-chunking-6189-5-0\"}\n{\"reqId\":\"Vx1CgH8AAQEAAFWegdMAAAAC\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent by (output started at \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/http\\/lib\\/Sapi.php:70) at \\/var\\/www\\/owncloud\\/3rdparty\\/sabre\\/http\\/lib\\/Sapi.php#58\",\"level\":3,\"time\":\"2016-04-25T00:02:40+02:00\",\"method\":\"HEAD\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/\"}\n{\"reqId\":\"Vx1CgH8AAQEAAFWegdQAAAAC\",\"remoteAddr\":\"1.2.3.4\",\"app\":\"webdav\",\"message\":\"Exception: {\\\"Message\\\":\\\"HTTP\\\\\\/1.1 404 File with name SofortUpload\\\\\\/IMG_20160424_120616.jpg could not be located\\\",\\\"Exception\\\":\\\"Sabre\\\\\\\\DAV\\\\\\\\Exception\\\\\\\\NotFound\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(78): OC\\\\\\\\Connector\\\\\\\\Sabre\\\\\\\\ObjectTree->getNodeForPath('SofortUpload\\\\\\/IM...', 0)\\\\n#1 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpGet(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(469): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:GET', Array)\\\\n#4 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/CorePlugin.php(253): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#5 [internal function]: Sabre\\\\\\\\DAV\\\\\\\\CorePlugin->httpHead(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#6 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/event\\\\\\/lib\\\\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\\\n#7 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(469): Sabre\\\\\\\\Event\\\\\\\\EventEmitter->emit('method:HEAD', Array)\\\\n#8 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/3rdparty\\\\\\/sabre\\\\\\/dav\\\\\\/lib\\\\\\/DAV\\\\\\/Server.php(254): Sabre\\\\\\\\DAV\\\\\\\\Server->invokeMethod(Object(Sabre\\\\\\\\HTTP\\\\\\\\Request), Object(Sabre\\\\\\\\HTTP\\\\\\\\Response))\\\\n#9 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/apps\\\\\\/files\\\\\\/appinfo\\\\\\/remote.php(56): Sabre\\\\\\\\DAV\\\\\\\\Server->exec()\\\\n#10 \\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/remote.php(137): require_once('\\\\\\/var\\\\\\/www\\\\\\/ownclo...')\\\\n#11 {main}\\\",\\\"File\\\":\\\"\\\\\\/var\\\\\\/www\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/connector\\\\\\/sabre\\\\\\/objecttree.php\\\",\\\"Line\\\":159}\",\"level\":0,\"time\":\"2016-04-25T00:02:40+02:00\",\"method\":\"HEAD\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/SofortUpload\\/IMG_20160424_120616.jpg\"}\n```\n"},"comment":{"url":"https://api.github.com/repos/owncloud/files_antivirus/issues/comments/263391663","html_url":"https://github.com/owncloud/files_antivirus/issues/110#issuecomment-263391663","issue_url":"https://api.github.com/repos/owncloud/files_antivirus/issues/110","id":263391663,"user":{"login":"VicDeo","id":991300,"avatar_url":"https://avatars.githubusercontent.com/u/991300?v=3","gravatar_id":"","url":"https://api.github.com/users/VicDeo","html_url":"https://github.com/VicDeo","followers_url":"https://api.github.com/users/VicDeo/followers","following_url":"https://api.github.com/users/VicDeo/following{/other_user}","gists_url":"https://api.github.com/users/VicDeo/gists{/gist_id}","starred_url":"https://api.github.com/users/VicDeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VicDeo/subscriptions","organizations_url":"https://api.github.com/users/VicDeo/orgs","repos_url":"https://api.github.com/users/VicDeo/repos","events_url":"https://api.github.com/users/VicDeo/events{/privacy}","received_events_url":"https://api.github.com/users/VicDeo/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T20:56:57Z","updated_at":"2016-11-28T20:56:57Z","body":"@e-alfred is it still reproducible with newer versions?"}}
{"actor":{"display_login":"VicDeo"}}