Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix(files): Allow downloading multiple nodes not from same base #49203

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 11, 2024

Summary

When downloading files in e.g. the favorites or recent view, then the nodes are not always share the same parent folder and we can not use the current directory as it is probably just a virtual one.

So we calculate the longest common base and use that as the directory for the download endpoint.

Screen recording

Bildschirmaufnahme_20241111_161224.webm

Already fixed for 31.

Checklist

@susnux susnux added this to the Nextcloud 28.0.13 milestone Nov 11, 2024
@susnux susnux requested review from nfebe, skjnldsv and Pytal November 11, 2024 15:55
@susnux
Copy link
Contributor Author

susnux commented Nov 11, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Nov 11, 2024

/backport to stable30

When downloading files in e.g. the *favorites* or *recent* view,
then the nodes are not always share the same parent folder
and we can not use the current directory as it is probably just a
virtual one.

So we calculate the longest common base and use that as the directory
for the download endpoint.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/download-non-files-view branch from 62b2485 to 11c847a Compare November 18, 2024 11:29
@susnux susnux enabled auto-merge November 18, 2024 11:29
@susnux susnux merged commit 12f3bdf into stable28 Nov 18, 2024
47 checks passed
@susnux susnux deleted the fix/download-non-files-view branch November 18, 2024 12:13
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Downloading multiple Files from recent Files in webgui results in empty Zip
3 participants