nextcloud/apps/files_sharing/src
Ferdinand Thiessen fb397e6d23 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 17:07:33 +02:00
..
components fix(files_sharing): restore state when updating share failed 2025-07-23 17:07:33 +02:00
files_actions fix(files): also use open-in-files for the search view 2025-07-01 19:47:25 +02:00
files_filters fix: do not show account filter for public shares 2025-05-13 14:21:22 +02:00
files_headers refactor(files_sharing): Make file structure more clear 2024-09-06 03:38:47 +02:00
files_newMenu fix(files_sharing): Hide file request if public uploads disabled 2024-12-20 12:13:32 +01:00
files_views fix(files_sharing): show note, label and list of uploaded files on file drop 2025-05-26 15:11:36 +02:00
lib test: Migrated all Jest tests to vitest 2024-08-26 17:27:22 +02:00
mixins fix(files_sharing): restore state when updating share failed 2025-07-23 17:07:33 +02:00
models fix(files_sharing): allow to disable share download permission 2025-04-16 20:38:20 +02:00
router fix(files_sharing): ignore duplicated navigation when replacing current route 2025-03-04 17:44:43 +01:00
services fix(files_sharing): l10n typo 2025-06-11 16:43:53 +02:00
style feat: Add bidi support in core directory 2024-08-29 08:32:47 +00:00
utils refactor: Use new ShareType across file_sharing 2024-12-03 14:25:15 +01:00
views fix(files_sharing): restore state when updating share failed 2025-07-23 17:07:33 +02:00
additionalScripts.js fix: adjust webpack nonce generation 2025-04-07 14:44:53 +02:00
collaborationresourceshandler.js fix: adjust webpack nonce generation 2025-04-07 14:44:53 +02:00
eventbus.d.ts feat(sharing): Allow to set default view mode for public shares 2025-02-10 18:57:38 +01:00
files_sharing_tab.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
init-public.ts feat(sharing): Allow to set default view mode for public shares 2025-02-10 18:57:38 +01:00
init.ts refactor(files): use new hide-download WebDAV property for download action 2025-04-16 20:38:20 +02:00
main.ts test: Adjust Typescript definitions for OCP and OC 2024-07-09 17:13:30 +02:00
personal-settings.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
public-nickname-handler.ts feat(files_sharing): show Account menu on public pages 2025-06-11 16:43:53 +02:00
share.js refactor: Use new ShareType across file_sharing 2024-12-03 14:25:15 +01:00
sharebreadcrumbview.js refactor: Use new ShareType across file_sharing 2024-12-03 14:25:15 +01:00
sharing.d.ts chore(files_sharing): refactor Share model to ts 2024-07-30 09:50:46 +00:00