Skip to content

[stable33] fix(files_sharing): normalize share target on parent folder rename - #64142

Open
backportbot[bot] wants to merge 5 commits into
stable33from
backport/64122/stable33
Open

[stable33] fix(files_sharing): normalize share target on parent folder rename#64142
backportbot[bot] wants to merge 5 commits into
stable33from
backport/64122/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 9, 2026

Copy link
Copy Markdown

Backport of #64122

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

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Remove all the empty commits
  • Amend HEAD commit to remove the line stating to skip CI

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

silverkszlo and others added 4 commits September 9, 2026 12:15
When a recipient moved an incoming share into one of their own folders
and later renamed that folder, Updater::renameChildren passed the mount
point to SharedMount::moveMount. Mount points always end in a slash, and
stripUserFilesPath did not normalize its result, so the slash was stored
in share.file_target. PROPFIND on such a share then returns 500.

Normalize the stripped path so no caller can write a trailing slash, and
repair rows that are already affected.

Signed-off-by: silver <s.szmajduch@posteo.de>
Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
perf(core): only run the trailing slash share repair once

Signed-off-by: silver <s.szmajduch@posteo.de>

Assisted-by: ClaudeCode:claude-opus-5

[skip ci]
fix(configlexikon): add missing config key

Signed-off-by: silver <s.szmajduch@posteo.de>

[skip ci]
@backportbot
backportbot Bot requested review from silverkszlo and susnux September 9, 2026 12:15
@backportbot backportbot Bot added bug 3. to review Waiting for reviews AI assisted labels Sep 9, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.9 milestone Sep 9, 2026
@silverkszlo silverkszlo changed the title [stable33] [stable35] fix(files_sharing): normalize share target on parent folder rename [stable33] fix(files_sharing): normalize share target on parent folder rename Sep 9, 2026
@silverkszlo
silverkszlo marked this pull request as ready for review September 9, 2026 12:56
@silverkszlo
silverkszlo requested a review from a team as a code owner September 9, 2026 12:56
@silverkszlo
silverkszlo requested review from come-nc, icewind1991, leftybournes and salmart-dev and removed request for a team September 9, 2026 12:56
Signed-off-by: silver <s.szmajduch@posteo.de>
Assisted-by:ClaudeCode:claude-opus-5
@silverkszlo
silverkszlo force-pushed the backport/64122/stable33 branch from 36d04fa to f42fa9f Compare September 9, 2026 13:35
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.

2 participants