{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20471","labels_url":"https://api.github.com/repos/owncloud/core/issues/20471/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20471/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20471/events","html_url":"https://github.com/owncloud/core/issues/20471","id":116510345,"number":20471,"title":"Corrupt zip files on large via link shared folders","user":{"login":"lukasbisdorf","id":1409857,"avatar_url":"https://avatars.githubusercontent.com/u/1409857?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasbisdorf","html_url":"https://github.com/lukasbisdorf","followers_url":"https://api.github.com/users/lukasbisdorf/followers","following_url":"https://api.github.com/users/lukasbisdorf/following{/other_user}","gists_url":"https://api.github.com/users/lukasbisdorf/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasbisdorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasbisdorf/subscriptions","organizations_url":"https://api.github.com/users/lukasbisdorf/orgs","repos_url":"https://api.github.com/users/lukasbisdorf/repos","events_url":"https://api.github.com/users/lukasbisdorf/events{/privacy}","received_events_url":"https://api.github.com/users/lukasbisdorf/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":4,"created_at":"2015-11-12T09:27:58Z","updated_at":"2015-11-12T12:29:53Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Create a large folder with e.g. Images (currently 1.1 GB)\r\n2. Open the shared Link\r\n3. Click Download in the top right corner. \r\n4. Try to open the zip file\r\n\r\n### Expected behaviour\r\nWindows 8 Explorer will be able to open the downloaded zip file. \r\n\r\n### Actual behaviour\r\nThe Explorer is not able to open the zip file and throws an error, that the file is corrupt. \r\n\r\n\r\n### Server configuration\r\n**Operating system**:\r\nDebian\r\n\r\n**Web server:**\r\nApache\r\n\r\n**Database:**\r\nMySQL Server version: 5.5.46-0+deb7u1 (Debian)\r\n\r\n**PHP version:**\r\n```\r\nPHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 08:26:31) \r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies\r\n\r\nPHP 5.4.45-0+deb7u2 (cgi-fcgi) (built: Oct 17 2015 08:27:29)\r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies\r\n```\r\n\r\n**ownCloud version:** 8.2.0\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nupdated \r\n\r\n**List of activated apps:**\r\n\r\n```\r\nEnabled:\r\n  - activity: 2.1.3\r\n  - files: 1.2.0\r\n  - files_pdfviewer: 0.7\r\n  - files_sharing: 0.7.0\r\n  - files_texteditor: 2.0\r\n  - files_trashbin: 0.7.0\r\n  - files_versions: 1.1.0\r\n  - files_videoviewer: 0.1.3\r\n  - firstrunwizard: 1.1\r\n  - gallery: 14.2.0\r\n  - templateeditor: 0.1\r\n  - updater: 0.6\r\nDisabled:\r\n  - encryption\r\n  - external\r\n  - files_external\r\n  - files_locking\r\n  - notifications\r\n  - provisioning_api\r\n  - user_external\r\n  - user_ldap\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"oc069cc349cf\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"fotodownload.foto-fischer-weinheim.de\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/vhost\\/fotofischer\\/www\\/data\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/fotodownload.foto-fischer-weinheim.de\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"8.2.0.12\",\r\n        \"dbname\": \"fotofischer_owncloud\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"mail_from_address\": \"fotodownload\",\r\n        \"mail_smtpmode\": \"php\",\r\n        \"mail_domain\": \"foto-fischer-weinheim.de\",\r\n        \"theme\": \"fotofischer\",\r\n        \"forcessl\": true,\r\n        \"maintenance\": false,\r\n        \"loglevel\": 3,\r\n        \"trashbin_retention_obligation\": \"auto\"\r\n    }\r\n}\r\n```\r\n\r\n**Are you using external storage, if yes which one:** none\r\n\r\n**Are you using encryption:** no - just https\r\n\r\n**Are you using an external user-backend, if yes which one:** none\r\n\r\n### Client configuration\r\n**Browser:** IE 11, Windows 7 / 8 (The Client only is has this browser)\r\n**Browser:** Chrome, Windows 8\r\n**Browser:** Firefox, Windows 8\r\n\r\n**Operating system:** Windows 7 / 8\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\n[Wed Nov 11 14:47:51 2015] [warn] [client 2003:50:ab03:9b72:388e:36e2:d10e:7e4] mod_fcgid: read data timeout in 40 seconds\r\n[Wed Nov 11 14:47:51 2015] [error] [client 2003:50:ab03:9b72:388e:36e2:d10e:7e4] Premature end of script headers: index.php\r\n[Wed Nov 11 15:23:02 2015] [warn] [client 2003:50:ab03:9b72:388e:36e2:d10e:7e4] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server\r\n[Wed Nov 11 15:23:02 2015] [error] [client 2003:50:ab03:9b72:388e:36e2:d10e:7e4] Premature end of script headers: remote.php\r\n[Wed Nov 11 15:26:15 2015] [warn] [client 78.42.34.218] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server\r\n[Wed Nov 11 15:26:15 2015] [warn] [client 78.42.34.218] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function\r\n[Wed Nov 11 15:36:24 2015] [warn] [client 78.42.34.218] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server\r\n[Wed Nov 11 15:36:24 2015] [warn] [client 78.42.34.218] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"AlZN6Xr6Zxm6se3txxSH\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:25:11+00:00\"}\r\n{\"reqId\":\"vGR9gXiRlLAVununoiBP\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:25:31+00:00\"}\r\n{\"reqId\":\"LMdyR1u2Zv7v1LRkTlEz\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:25:40+00:00\"}\r\n{\"reqId\":\"9X\\/ShXu1Iy689fE114kA\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:25:43+00:00\"}\r\n{\"reqId\":\"L30m2raRWm0YhYh5CXxv\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:01+00:00\"}\r\n{\"reqId\":\"xtgkPTznrfuz7ZZRAa0D\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:10+00:00\"}\r\n{\"reqId\":\"X3L+usm7rJxGOm38Mnnc\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:15+00:00\"}\r\n{\"reqId\":\"dSQHKecP6Gc1Balap7mU\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:31+00:00\"}\r\n{\"reqId\":\"0r4ni9avPHHOLcqPir+L\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:41+00:00\"}\r\n{\"reqId\":\"R3NzefuPzAR\\/AOnk2Ig7\",\"remoteAddr\":\"2003:50:ab03:9b72:388e:36e2:d10e:7e4\",\"app\":\"PHP\",\"message\":\"tempnam(): open_basedir restriction in effect. File(\\/tmp) is not within the allowed path(s): (\\/var\\/www\\/vhost\\/fotofischer\\/www:\\/var\\/www\\/vhost\\/fotofischer\\/tmp\\/) at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/tempmanager.php#228\",\"level\":3,\"time\":\"2015-11-11T14:26:47+00:00\"}\r\n{\"reqId\":\"felLskPZbuFMGfuHUYjo\",\"remoteAddr\":\"2a01:4f8:100:57fc:894b:b053:b8cb:8a51\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-11-11T14:26:54+00:00\"}\r\n{\"reqId\":\"dHVODastJgYK4ZYs6zwd\",\"remoteAddr\":\"2a01:4f8:100:57fc:894b:b053:b8cb:8a51\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-11-11T14:30:54+00:00\"}\r\n{\"reqId\":\"v\\/Ex6slsJrgmps47iwBB\",\"remoteAddr\":\"2a01:4f8:100:57fc:46b:342d:d230:ad2\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-11-12T08:46:37+00:00\"}\r\n{\"reqId\":\"dE47hInKZqWnNsfLKgql\",\"remoteAddr\":\"78.42.34.218\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-11-12T08:48:11+00:00\"}\r\n{\"reqId\":\"csPwcAEEaowrmEUcsrAm\",\"remoteAddr\":\"2a01:4f8:100:57fc:46b:342d:d230:ad2\",\"app\":\"PHP\",\"message\":\"Array to string conversion at \\/var\\/www\\/vhost\\/fotofischer\\/www\\/owncloud\\/lib\\/private\\/template\\/functions.php#36\",\"level\":3,\"time\":\"2015-11-12T09:01:39+00:00\"}\r\n```\r\nI have fixed the open_basedir restirctions. (On shared hosting it would be better if I could tell oc which temp folder to use)\r\n#### Browser log\r\n```\r\nURL\tProtokoll\tMethode\tErgebnis\tTyp\tEmpfangen\tBenötigte Zeit\tInitiator\tWarten‎‎\tStart‎‎\tAnforderung‎‎\tAntwort‎‎\tCachelesezugriff‎‎\tZeitspanne‎‎\r\n/index.php/s/LyOdalteMhDHxHG/download?path=%2Freportage&files\tHTTPS\tGET\t(Abgebrochen)\t\t0 B\t2.21 s\tnavigieren\t0\t547\t1672\t0\t0\t2672\r\n/index.php/s/LyOdalteMhDHxHG/download?path=%2Freportage&files\t(Ausstehend...)\tGET\t(Ausstehend...)\t(Ausstehend...)\t0 B\t(Ausstehend...)\t\t14703\t0\t3219\t0\t0\t-13031\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/156091911","html_url":"https://github.com/owncloud/core/issues/20471#issuecomment-156091911","issue_url":"https://api.github.com/repos/owncloud/core/issues/20471","id":156091911,"user":{"login":"DeepDiver1975","id":1005065,"avatar_url":"https://avatars.githubusercontent.com/u/1005065?v=3","gravatar_id":"","url":"https://api.github.com/users/DeepDiver1975","html_url":"https://github.com/DeepDiver1975","followers_url":"https://api.github.com/users/DeepDiver1975/followers","following_url":"https://api.github.com/users/DeepDiver1975/following{/other_user}","gists_url":"https://api.github.com/users/DeepDiver1975/gists{/gist_id}","starred_url":"https://api.github.com/users/DeepDiver1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeepDiver1975/subscriptions","organizations_url":"https://api.github.com/users/DeepDiver1975/orgs","repos_url":"https://api.github.com/users/DeepDiver1975/repos","events_url":"https://api.github.com/users/DeepDiver1975/events{/privacy}","received_events_url":"https://api.github.com/users/DeepDiver1975/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T12:29:53Z","updated_at":"2015-11-12T12:29:53Z","body":"> I have played already with this value. Default it's 30 Seconds. Does the limit have to cover the time, the client needs to download the file, or does it have to cover the time the script needs to create the zip file?\r\n\r\nthe full download time because the archive is not created but we stream the data directly to the client."}}