Skip to content

fix(share): do not re-accept rejected shares#62373

Open
ArtificialOwl wants to merge 1 commit into
masterfrom
fix/noid/keep-hidden-share-as-hidden
Open

fix(share): do not re-accept rejected shares#62373
ArtificialOwl wants to merge 1 commit into
masterfrom
fix/noid/keep-hidden-share-as-hidden

Conversation

@ArtificialOwl

@ArtificialOwl ArtificialOwl commented Jul 21, 2026

Copy link
Copy Markdown
Member

It seems owncloud is using the 'accepted' field on share_type=(0, 1, 2) to delete shares - instead of deleting the entry from oc_share like we do. This way, even user-to-user direct share can be restored via the 'Deleted shares' panel in Files.

Now, during the migration from oc to nc, we flatten the value to 1 forcing previously deleted shares to come back to life.

This patch will flatten value to 1 only on non-rejected shares.

This patch should be backport to 31 as migration can be initiated to 31

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl
ArtificialOwl requested a review from a team as a code owner July 21, 2026 18:50
@ArtificialOwl
ArtificialOwl requested review from Altahrim, come-nc, leftybournes and nfebe and removed request for a team July 21, 2026 18:50
@ArtificialOwl ArtificialOwl added the 3. to review Waiting for reviews label Jul 22, 2026
@ArtificialOwl ArtificialOwl added this to the Nextcloud 35 milestone Jul 22, 2026
@ArtificialOwl

Copy link
Copy Markdown
Member Author

/backport to stable34

@ArtificialOwl

Copy link
Copy Markdown
Member Author

/backport to stable33

@ArtificialOwl

Copy link
Copy Markdown
Member Author

/backport to stable32

@ArtificialOwl

Copy link
Copy Markdown
Member Author

/backport to stable31

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.

1 participant