nextcloud/apps/files_sharing
Ferdinand Thiessen b847d2f23f
fix(files_sharing): restore state when updating share failed
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>
2025-07-23 18:33:22 +02:00
..
appinfo chore: remove legacy action to test remote endpoint 2024-11-29 11:14:37 +01:00
composer fix(files_sharing): Move ConfigLexicon to Config dir, update sharing input 2025-05-06 15:53:07 +01:00
css chore: Compile assets 2024-11-19 09:42:13 +01:00
img chore: Make app icons consistent Material Symbols with same settings 2024-07-10 15:53:45 +02:00
l10n fix(l10n): Update translations from Transifex 2025-07-23 00:12:05 +00:00
lib fix(files_sharing): ensure share folder exists in the settings 2025-07-17 21:16:51 +00:00
src fix(files_sharing): restore state when updating share failed 2025-07-23 18:33:22 +02:00
templates fix(files_sharing): show proper share not found error message 2024-08-06 16:25:10 +02:00
tests fix(files_sharing): add mime fallback to public preview too 2025-06-28 09:27:20 +02:00
.l10nignore chore: Add SPDX header 2024-06-02 20:00:00 +02:00
openapi.json fix(files_sharing): add mime fallback to public preview too 2025-06-28 09:27:20 +02:00
openapi.json.license chore: Add SPDX header 2024-06-02 20:00:00 +02:00