Skip to content

[stable31] fix(files_sharing): Restore password guard return for new public shares#59896

Merged
sorbaugh merged 2 commits intostable31from
backport/59873/stable31
Apr 24, 2026
Merged

[stable31] fix(files_sharing): Restore password guard return for new public shares#59896
sorbaugh merged 2 commits intostable31from
backport/59873/stable31

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Apr 23, 2026

Backport of #59873

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
  • 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.

fix(files_sharing): Restore password guard return for new public shares

Creating a new public share without a password silently succeeded: the

password error was shown but execution continued, and the share was

created without a password. Users had to save a second time for the

password to apply.

The password guard now blocks the save when a new public share is

missing a password. Non-public shares (user/group) are never blocked

by this guard, so they remain unaffected.

Tests invoke the real saveShare method against a stubbed context and

cover the save-twice symptom and the non-public-share regression.

Signed-off-by: nfebe <fenn25.fn@gmail.com>

[skip ci]
@backportbot backportbot Bot requested review from nfebe, skjnldsv and szaimen April 23, 2026 19:08
@backportbot backportbot Bot added 3. to review Waiting for reviews feature: sharing labels Apr 23, 2026
@nfebe
Copy link
Copy Markdown
Contributor

nfebe commented Apr 23, 2026

/compile

@nfebe nfebe marked this pull request as ready for review April 23, 2026 19:13
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@sorbaugh sorbaugh merged commit e97fc70 into stable31 Apr 24, 2026
118 of 119 checks passed
@sorbaugh sorbaugh deleted the backport/59873/stable31 branch April 24, 2026 06:42
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.

4 participants