Skip to content

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

Merged
CarlSchwan merged 1 commit into
masterfrom
fix/noid/keep-hidden-share-as-hidden
Aug 4, 2026
Merged

fix(share): do not re-accept rejected shares#62373
CarlSchwan merged 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

@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

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl
ArtificialOwl force-pushed the fix/noid/keep-hidden-share-as-hidden branch from 265556c to f74556b Compare August 4, 2026 11:08
@CarlSchwan
CarlSchwan merged commit 0bcc99c into master Aug 4, 2026
216 checks passed
@CarlSchwan
CarlSchwan deleted the fix/noid/keep-hidden-share-as-hidden branch August 4, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants