Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jul 23, 2025

Backport of #54055

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

Todo

  • Review and resolve any conflicts
  • 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.

@backportbot backportbot bot added this to the Nextcloud 31.0.8 milestone Jul 23, 2025
We need to save the previous state - here the password - so that if the
update fails we can revert the shown state.
This happens e.g. if you have the password policy app and try to add an
unsecure password.

To reproduce (with password policy):
1. Create new link share
2. enable password protection
3. use insecure password like `1234`
4. save share

Now you see that the update failed, but the password protection is still
enabled. This happened because `password` and `newPassword` were
misused. `password` was already set when `newPassword` was not saved so
we could not know to what we need to reset when the update failed.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the backport/54055/stable31 branch from 9a0b613 to b847d2f Compare July 23, 2025 16:33
@susnux susnux marked this pull request as ready for review July 23, 2025 16:33
@susnux
Copy link
Contributor

susnux commented Jul 23, 2025

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit 418924a into stable31 Jul 23, 2025
145 of 152 checks passed
@susnux susnux deleted the backport/54055/stable31 branch July 23, 2025 19:06
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 5, 2025
8 tasks
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.

3 participants