{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/26664","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/26664/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/26664/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/26664/events","html_url":"https://github.com/owncloud/core/issues/26664","id":190650803,"number":26664,"title":"Shared folder with hyphen in name can't be downloaded","user":{"login":"paeppa","id":16900611,"avatar_url":"https://avatars.githubusercontent.com/u/16900611?v=3","gravatar_id":"","url":"https://api.github.com/users/paeppa","html_url":"https://github.com/paeppa","followers_url":"https://api.github.com/users/paeppa/followers","following_url":"https://api.github.com/users/paeppa/following{/other_user}","gists_url":"https://api.github.com/users/paeppa/gists{/gist_id}","starred_url":"https://api.github.com/users/paeppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paeppa/subscriptions","organizations_url":"https://api.github.com/users/paeppa/orgs","repos_url":"https://api.github.com/users/paeppa/repos","events_url":"https://api.github.com/users/paeppa/events{/privacy}","received_events_url":"https://api.github.com/users/paeppa/received_events","type":"User","site_admin":false},"labels":[{"id":12406434,"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929","default":true},{"id":12470597,"url":"https://api.github.com/repos/owncloud/core/labels/needs%20info","name":"needs info","color":"0b02e1","default":false},{"id":120033373,"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"assignees":[{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/102","html_url":"https://github.com/owncloud/core/milestones/9.1.4","labels_url":"https://api.github.com/repos/owncloud/core/milestones/102/labels","id":2161349,"number":102,"title":"9.1.4","description":null,"creator":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":2,"state":"open","created_at":"2016-11-28T15:55:29Z","updated_at":"2016-12-01T10:19:39Z","due_on":null,"closed_at":null},"comments":47,"created_at":"2016-11-21T08:39:59Z","updated_at":"2016-12-01T10:25:32Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Login to owncloud\r\n2. Create a folder with the name \"test\" and a subfolder with a hyphen in it (\"2016-11-21\" for example)\r\n3. Upload any file into test/2016-11-21 folder\r\n4. Share the folder \"test\" via link (without password or expiration)\r\n5. Logout of owncloud and go to the shared link URL\r\n6. Select the folder \"2016-11-21\" and click on \"Download\"\r\n\r\n### Expected behaviour\r\nA zip file should be downloaded, that contains all files of the folder \"2016-11-21\"\r\n\r\n### Actual behaviour\r\nAn error message \"File not found\r\nThe specified document has not been found on the server.\r\nYou can click here to return to ownCloud.\" appears\r\n\r\n### Server configuration\r\n**Operating system**: Debian Jessie 8.6\r\n\r\n**Web server:** Apache 2 (2.4.10-10+deb8u5)\r\n\r\n**Database:** MariaDB 5.5.51\r\n\r\n**PHP version:** PHP 5.6.27-0+deb8u1\r\n\r\n**ownCloud version:** ownCloud 9.1.2 (stable)\r\n\r\n**Updated from an older ownCloud or fresh install:** fresh install\r\n\r\n**Where did you install ownCloud from:** apt-repository (owncloud-files package)\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\n```\r\nNo errors have been found.\r\n```\r\n\r\n**List of activated apps:**\r\n\r\n```\r\nEnabled:\r\n  - activity: 2.3.2\r\n  - comments: 0.3.0\r\n  - dav: 0.2.7\r\n  - federatedfilesharing: 0.3.0\r\n  - federation: 0.1.0\r\n  - files: 1.5.1\r\n  - files_pdfviewer: 0.8.1\r\n  - files_sharing: 0.10.0\r\n  - files_texteditor: 2.1\r\n  - files_trashbin: 0.9.0\r\n  - files_versions: 1.3.0\r\n  - files_videoplayer: 0.9.8\r\n  - firstrunwizard: 1.1\r\n  - gallery: 15.0.0\r\n  - notifications: 0.3.0\r\n  - provisioning_api: 0.5.0\r\n  - systemtags: 0.3.0\r\n  - templateeditor: 0.1\r\n  - updatenotification: 0.2.1\r\nDisabled:\r\n  - encryption\r\n  - external\r\n  - files_antivirus\r\n  - files_external\r\n  - notes\r\n  - user_external\r\n  - user_ldap\r\n\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n{\r\n    \"system\": {\r\n        \"updatechecker\": false,\r\n        \"instanceid\": \"oc6fw0jhk5i5\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"owncloud-test\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/owncloud\\/data\",\r\n        \"overwrite.cli.url\": \"http:\\/\\/owncloud-test\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"9.1.2.5\",\r\n        \"dbname\": \"owncloudtest\",\r\n        \"dbhost\": \"nas\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\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:** No\r\n\r\n**Are you using encryption:** No\r\n\r\n**Are you using an external user-backend, if yes which one:** No\r\n\r\n### Client configuration\r\n**Browser:** Firefox ESR 45.5.0\r\n\r\n**Operating system:** Windows 7 Enterprise\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\naccess.log:\r\n192.168.178.101 - - [21/Nov/2016:09:14:00 +0100] \"GET /index.php/s/BEXX9uQlCf58nCr HTTP/1.1\" 200 3962 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:01 +0100] \"GET /apps/files_sharing/css/public.css?v=65d56d2e6ca5c46fa03adc731692e1e5 HTTP/1.1\" 200 1330 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:01 +0100] \"GET /apps/files_sharing/css/mobile.css?v=65d56d2e6ca5c46fa03adc731692e1e5 HTTP/1.1\" 200 958 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:02 +0100] \"GET /apps/files_sharing/js/public.js?v=65d56d2e6ca5c46fa03adc731692e1e5 HTTP/1.1\" 200 4232 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:01 +0100] \"GET /index.php/core/js/oc.js?v=65d56d2e6ca5c46fa03adc731692e1e5 HTTP/1.1\" 200 3201 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - BEXX9uQlCf58nCr [21/Nov/2016:09:14:03 +0100] \"PROPFIND /public.php/webdav/ HTTP/1.1\" 207 2143 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:03 +0100] \"GET /index.php/apps/gallery/config.public?extramediatypes=1&token=BEXX9uQlCf58nCr HTTP/1.1\" 200 786 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:03 +0100] \"GET /cron.php HTTP/1.1\" 200 750 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:06 +0100] \"GET /index.php/s/BEXX9uQlCf58nCr/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp HTTP/1.1\" 404 10158 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:07 +0100] \"GET /index.php/core/js/oc.js?v=65d56d2e6ca5c46fa03adc731692e1e5 HTTP/1.1\" 200 3201 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:07 +0100] \"GET /index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1\" 401 736 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n192.168.178.101 - - [21/Nov/2016:09:14:07 +0100] \"GET /cron.php HTTP/1.1\" 200 750 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0\"\r\n\r\nerror.log: is empty\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"ipWvhYeC5r12d8UR6jbd\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:06+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"wRj1tXK6CZnNdKEXM0Qd\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:13+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"Y1Z1pCw4Fk\\/TkZy5xPb\\/\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\r\n\\/files_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:22+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nC\r\nr\\/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"7PE4wl1dbSyl9kzN2kkJ\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:30+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"5vDRU3M895+vFlCYOCng\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:39+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"9VMxFwWQScVndxZwlx8x\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:48+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"2MM1TK1pmu4d7O6AIc9n\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:14:56+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"+P6Z77l6KgOcz6+PhwuH\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:05+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"CYvqRyrFVqI5k2Tfc2iQ\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:14+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"Ht5XO+ieJ1YnBL2rd3TY\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:23+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"hH93Nyu4aCpksyotH3ZE\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:32+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"qMxOQEvH7vEwxQkJ\\/l8z\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\\r\n/files_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:41+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\r\n\\/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n{\"reqId\":\"GKe75ldiKeePVdXRE7U1\",\"remoteAddr\":\"192.168.178.101\",\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/apps\\/\r\nfiles_sharing\\/lib\\/Controllers\\/ShareController.php#442\",\"level\":3,\"time\":\"2016-11-21T08:15:50+00:00\",\"method\":\"GET\",\"url\":\"\\/index.php\\/s\\/BEXX9uQlCf58nCr\\\r\n/download?path=%2F&files=2016-11-21&downloadStartSecret=v0vjnyhcfxp\",\"user\":\"--\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/264135549","html_url":"https://github.com/owncloud/core/issues/26664#issuecomment-264135549","issue_url":"https://api.github.com/repos/owncloud/core/issues/26664","id":264135549,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T10:25:32Z","updated_at":"2016-12-01T10:25:32Z","body":"Ok thanks.\r\n\r\nI have PHP 5.6.28 from the openSUSE repos today and yesterday it was PHP 7.0.8.\r\n\r\nWeird... Anyway, will need to think of a better way to pass a list of files to this URL in a consistent and reliable way."}}
{"actor":{"display_login":"PVince81"}}