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

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

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Nov 18, 2024

Backport of #49203

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from nfebe, skjnldsv and susnux November 18, 2024 12:17
@backportbot backportbot bot added this to the Nextcloud 29.0.10 milestone Nov 18, 2024
@susnux susnux changed the title [stable29] [stable28] fix(files): Allow downloading multiple nodes not from same base [stable29] fix(files): Allow downloading multiple nodes not from same base Nov 18, 2024
@susnux susnux force-pushed the backport/49203/stable29 branch from 2f7ff63 to 836ae1d Compare November 18, 2024 12:39
@susnux susnux marked this pull request as ready for review November 18, 2024 12:39
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 <[email protected]>
@susnux susnux force-pushed the backport/49203/stable29 branch from 836ae1d to 4b7014d Compare November 19, 2024 19:24
@susnux susnux enabled auto-merge November 19, 2024 19:25
@susnux
Copy link
Contributor

susnux commented Nov 19, 2024

/compile

Signed-off-by: nextcloud-command <[email protected]>
@susnux susnux merged commit d597080 into stable29 Nov 19, 2024
113 checks passed
@susnux susnux deleted the backport/49203/stable29 branch November 19, 2024 19:47
@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.

3 participants