Uh oh!
There was an error while loading. Please reload this page.
Use File Node API for more download cases, skip unreadable files - #18433
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blizzz
commented
Dec 17, 2019
mh, some integration tests for download throw 404s and i can reproduce locally :/ |
rullzer
commented
Dec 17, 2019
Lets restart them first |
rullzer
commented
Dec 17, 2019
Nope we'll have to dive into that.. |
blizzz
commented
Dec 17, 2019
yeah, no surprise it fails for me, too… I'll dive, either a bit later, or tomorrow morning. |
blizzz
commented
Dec 17, 2019
first arg has to be full path, not just a name. works one folder down, but not deeper structures. |
blizzz
commented
Dec 18, 2019
Passes now (apart from those MySQL timeouts) |
| * @throws InvalidPathException | ||
| */ | ||
| public function addDirRecursive($dir, $internalDir='') { | ||
| public function addDirRecursive(string $dir, string $internalDir = ''): void { |
There was a problem hiding this comment.
passing the Node/FileInfo instead of the path here would be nice as it would cut the number of filecache queries in half
There was a problem hiding this comment.
Passing the Node would be more helpful, I agree and had the same thought. I discarded it to have a simpler and smaller changeset to backport.
blizzz
commented
Dec 18, 2019
/backport to stable17 |
blizzz
commented
Dec 18, 2019
/backport to stable16 |
blizzz
commented
Dec 18, 2019
/backport to stable15 |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* avoids a 403, but enables download of resources that are not restricted * single file downloads still cause 403 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
9cd969b to
af91efdComparebackport to stable17 in #18488 |
backport to stable16 in #18489 |
The backport to stable15 failed. Please do this backport manually. |
blizzz
commented
Dec 20, 2019
15 is EOL now |
Follow up to #17822