nextcloud-server/apps/files/tests
pjft 3ae5213308 Fix bug introduced on drag and drop external files
Drag and drop of external (OS filesystem) to subdirectories in the browser would fail on specific cases, mainly when the subdirectory was no longer off the root folder.
This seemed to have been an issue introduced with the subdirectory free space calculation [here](f9536b0809) and it seems to fail for any subdirectory that doesn't belong to the root folder.

Bug reports:
- https://help.nextcloud.com/t/drag-drop-into-subfolders/120731
- https://github.com/nextcloud/server/issues/24720

I couldn't find any reference on scenarios or quota management that would suggest when a subdirectory's free space would be different to the parent's free space, other than when on the root folder, where subdirectories can be external mounts.

As such, if my understanding is correct (please review), this calculation can - and should - be made by getting the free space from the first subdirectory in the total path, which caters for all subdirectory scenarios.

Please advise, happy to help improve this.

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: pjft <pjft@users.noreply.github.com>
2021-10-17 19:32:46 +07:00
..
Activity Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +07:00
BackgroundJob Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00
Command Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +07:00
Controller files: Create files from template API 2021-01-28 11:59:46 +07:00
Service Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00
js Fix bug introduced on drag and drop external files 2021-10-17 19:32:46 +07:00
HelperTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +07:00