{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/19854","labels_url":"https://api.github.com/repos/owncloud/core/issues/19854/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/19854/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/19854/events","html_url":"https://github.com/owncloud/core/issues/19854","id":112061254,"number":19854,"title":"8.2RC1 Files - Downloading entire subdirectories produces 0-byte .tar and .zip files","user":{"login":"taligentx","id":12835671,"avatar_url":"https://avatars.githubusercontent.com/u/12835671?v=3","gravatar_id":"","url":"https://api.github.com/users/taligentx","html_url":"https://github.com/taligentx","followers_url":"https://api.github.com/users/taligentx/followers","following_url":"https://api.github.com/users/taligentx/following{/other_user}","gists_url":"https://api.github.com/users/taligentx/gists{/gist_id}","starred_url":"https://api.github.com/users/taligentx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taligentx/subscriptions","organizations_url":"https://api.github.com/users/taligentx/orgs","repos_url":"https://api.github.com/users/taligentx/repos","events_url":"https://api.github.com/users/taligentx/events{/privacy}","received_events_url":"https://api.github.com/users/taligentx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/regression","name":"regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1260,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-10-19T07:40:12Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":2,"created_at":"2015-10-19T02:46:18Z","updated_at":"2015-10-19T08:04:15Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Create a top level directory and a subdirectory: `Top Level Directory/Second Level Directory (Parenthesis)`\r\n2. Upload a file to the subdirectory.\r\n3. Browse the top level directory and select \"Download\" for the subdirectory, or browse to the subdirectory, select all files, then download.\r\n\r\n### Expected behavior\r\nBased on #19318 - OC should generate a .tar or .zip file correctly named after the subdirectory and with the subdirectory contents: `Second Level Directory (Parenthesis).tar`\r\n\r\n### Actual behavior\r\nOC generates a 0-byte file correctly named after the subdirectory with no extension under both Mac OS X (Safari 9) and Windows (Chrome): `Second Level Directory (Parenthesis)`\r\n\r\n### Additional info\r\nNavigating to the subdirectory and selecting multiple (but not all) files results in a valid .tar or .zip file with the selected files, but poorly named with URL encoded characters: \r\n\r\nMac OS X: `Second%20Level%20Directory%20%28Parenthesis%29.tar`\r\nWindows: `Second Level Directory %28Parenthesis%29.zip`\r\n\r\nThis affects files either stored within the OC data directory or files accessed via local external storage. A fresh install of OC 8.1 does not have this issue, but I'm looking to switch to tarstreamer due to Mac OS X's inability to natively decompress the .zip files that OC 8.1 generates.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 14.04\r\n\r\n**Web server:**\r\nnginx/1.9.4\r\n\r\n**Database:**\r\nmysql  Ver 15.1 Distrib 10.0.21-MariaDB\r\n\r\n**PHP version:**\r\nPHP 5.5.9-1ubuntu4.13\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n8.2 RC1 (testing)\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nFresh install\r\n\r\n**List of activated apps:**\r\n```\r\nEnabled:\r\n  - files: 1.1.11\r\n  - files_locking: \r\n  - files_pdfviewer: 0.7\r\n  - files_sharing: 0.6.3\r\n  - files_texteditor: 2.0\r\n  - files_trashbin: 0.6.3\r\n  - files_versions: 1.0.6\r\n  - files_videoviewer: 0.1.3\r\n  - firstrunwizard: 1.1\r\n  - notifications: 0.1.0\r\n  - provisioning_api: 0.2\r\n  - templateeditor: 0.1\r\n  - updater: 0.6\r\nDisabled:\r\n  - activity\r\n  - encryption\r\n  - external\r\n  - files_external\r\n  - gallery\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    \"system\": {\r\n        \"instanceid\": \"foo\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"foo.example.com\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/foo.example.com\\/owncloud82-data\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/foo.example.com\\/cloud\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"8.2.0.9\",\r\n        \"dbname\": \"owncloud82rc1\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n        \"logtimezone\": \"UTC\",\r\n        \"installed\": true,\r\n    }\r\n}\r\n```\r\n\r\n**Are you using external storage, if yes which one:**\r\nLocal"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/149137300","html_url":"https://github.com/owncloud/core/issues/19854#issuecomment-149137300","issue_url":"https://api.github.com/repos/owncloud/core/issues/19854","id":149137300,"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-10-19T08:04:15Z","updated_at":"2015-10-19T08:04:15Z","body":"Looks like the issue is with downloading any subfolder ... nothing encoding related as far as I can tell"}}