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

fix(trashbin): Correctly set original name as displayname #46996

Merged
merged 3 commits into from
Aug 5, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 2, 2024

Summary

If you like I can split this (see both commits):

  1. Fix trashbin (see linked issue) display name as it should be set to the WebDAV displayname property
  2. Improve trashbin view performance by only issue one PROPFIND, this also allows to clean up the code a lot.

Checklist

@susnux susnux added this to the Nextcloud 30 milestone Aug 2, 2024
@susnux susnux requested a review from skjnldsv as a code owner August 2, 2024 17:54
Comment on lines +77 to +80
// Pass the real filename as the DAV display name
$propFind->handle(FilesPlugin::DISPLAYNAME_PROPERTYNAME, function () use ($node) {
return $node->getFilename();
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe deprecate nc:trashbin-filename then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do so, but wanted not to do this here as a bit unrelated. can do so in another PR.

@Altahrim Altahrim mentioned this pull request Aug 5, 2024
… as display name for DAV

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit c7e0d90 into master Aug 5, 2024
169 checks passed
@susnux susnux deleted the fix/trashbin branch August 5, 2024 12:27
@susnux
Copy link
Contributor Author

susnux commented Aug 5, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Aug 5, 2024

/backport to stable28

@susnux
Copy link
Contributor Author

susnux commented Aug 5, 2024

/backport to stable28

Copy link

backportbot bot commented Aug 5, 2024

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b backport/46996/stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick b5cd64e5 55d77fec aacf0dc5

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/46996/stable28

Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud:backport/46996/stable28."}


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

@icewind1991
Copy link
Member

This broke navigating into folders: #47153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Deleted items shows random number (timestamp) after item name
4 participants