summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/EventHandler.php
diff options
context:
space:
mode:
authorpjft <pjft@users.noreply.github.com>2021-07-29 22:50:02 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-10-17 19:32:46 +0000
commit3ae52133083c5d498bf9ae4f7bab05f26ad25330 (patch)
tree2fa39eebf43e390ffaee76491ccb643703fb0b16 /apps/comments/lib/EventHandler.php
parent94b3a8c1e9707f633876edffe5557e9c7de7e53c (diff)
downloadnextcloud-server-3ae52133083c5d498bf9ae4f7bab05f26ad25330.tar.gz
nextcloud-server-3ae52133083c5d498bf9ae4f7bab05f26ad25330.zip
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](https://github.com/nextcloud/server/commit/f9536b08096ed1c80391af36d33a18198be1fced) 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>
Diffstat (limited to 'apps/comments/lib/EventHandler.php')
0 files changed, 0 insertions, 0 deletions