⚠️ This issue respects the following points: ⚠️
Bug description
When Enforce password protection and Always ask for a password are enabled and I want to update a link share it's not possible to save if no new password is set.
If a new password is chosen it works to update the share but this behavior is extremely inconvenient as you have to set a new password for every small change.

Steps to reproduce
- Enable
Always ask for passwordand Enforce password protection in Administration Settings
- Right click on a folder and choose
Share folder
- Create a share link
- Click on
Customize link
- Change e.g. the expiration date
- Click on
Update share
Expected behavior
The expected behavior is that updating the share works with as well as without setting a new password.
Nextcloud Server version
27
Additional info
The bug occurs in NC 27.1.2 and NC 27.1.3
Bug description
When

Enforce password protectionandAlways ask for a passwordare enabled and I want to update a link share it's not possible to save if no new password is set.If a new password is chosen it works to update the share but this behavior is extremely inconvenient as you have to set a new password for every small change.
Steps to reproduce
Always ask for passwordandEnforce password protectionin Administration SettingsShare folderCustomize linkUpdate shareExpected behavior
The expected behavior is that updating the share works with as well as without setting a new password.
Nextcloud Server version
27
Additional info
The bug occurs in NC 27.1.2 and NC 27.1.3