Skip to content

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

Closed
backportbot[bot] wants to merge 3 commits into
stable33from
backport/63956/stable33
Closed

backportbot[bot] wants to merge 3 commits into
stable33from
backport/63956/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Backport of #63956

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 3 commits September 8, 2026 13:40
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]
@backportbot backportbot Bot added bug 3. to review Waiting for reviews AI assisted labels Sep 8, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.9 milestone Sep 8, 2026
@silverkszlo silverkszlo closed this Sep 8, 2026
@AndyScherzinger
AndyScherzinger deleted the backport/63956/stable33 branch September 10, 2026 07:55
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