Skip to content

fix: don't trigger moveShareInOrOutOfShare for reshares#58121

Open
icewind1991 wants to merge 1 commit intomasterfrom
move-share-out-share-reshare
Open

fix: don't trigger moveShareInOrOutOfShare for reshares#58121
icewind1991 wants to merge 1 commit intomasterfrom
move-share-out-share-reshare

Conversation

@icewind1991
Copy link
Member

@icewind1991 icewind1991 added this to the Nextcloud 34 milestone Feb 5, 2026
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Feb 5, 2026
@icewind1991 icewind1991 requested a review from a team as a code owner February 5, 2026 15:37
@icewind1991 icewind1991 requested review from Altahrim, ArtificialOwl, leftybournes and salmart-dev and removed request for a team February 5, 2026 15:37
Comment on lines 58 to 60
if ($src->getMountPoint() instanceof SharedMount) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This will always be true, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Narrow it down to only bail out for the root of the share (so the share itself is being moved, not something being moved into a share)

Copy link
Contributor

@artonge artonge Feb 5, 2026

Choose a reason for hiding this comment

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

I am really not sure about the new code either. I was not even able to reproduce the scenario of moveShareInOrOutOfShare 🙈.
Can you maybe add a comment at least?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a comment

@icewind1991 icewind1991 force-pushed the move-share-out-share-reshare branch from cfd8f89 to 6127c31 Compare February 5, 2026 16:25
@icewind1991 icewind1991 requested a review from artonge February 5, 2026 16:53
@icewind1991
Copy link
Member Author

/backport to stable33

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 force-pushed the move-share-out-share-reshare branch from 6127c31 to 3c7124d Compare February 6, 2026 14:41
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]: Error while renaming a file by a shared user

3 participants