You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
enh: Unifiy always ask for password and enforce password checkboxes #54245
Enable Always ask for a password or Set default expiration date for shares via link or mail
Then enable password or date ENFORCE
Disable the initial Always ask for a password or Set default expiration date for shares via link or mail checkbox
The ENFORCE setting is still set to true in the DB. Despite the parent checkbox being disabled
That means we need to check for both checkboxes to really ensure the date or password is enforced
The ENFORCE setting is still set to true in the DB. Despite the parent checkbox being disabled
That means we need to check for both checkboxes to really ensure the date or password is enforced
These new checks solve it on the client side but where are the checks to remove the db from the inconsistent state?
You need add a change that unchecks the sub checkbox when the main is unchecked making sure both requests are sent to the db? (This would fix the original but and the existing fix with be a guardrail)
where the checks to remove the db from the inconsistent state?
One could argue you don't remove previously set configs.
We can chat about this code in a followup, but fixing the front is one thing, changing helpers that are used in many places for 10 years is another
Activity
skjnldsv commentedon Aug 4, 2025
From #54159 (comment)
One could argue you don't remove previously set configs.
We can chat about this code in a followup, but fixing the front is one thing, changing helpers that are used in many places for 10 years is another
server/lib/private/Share20/Manager.php
Lines 1769 to 1782 in 746e591
server/lib/private/legacy/OC_Util.php
Lines 56 to 67 in edf096a
server/lib/private/Template/JSConfigHelper.php
Lines 97 to 98 in 03c76d8
nfebe commentedon Aug 4, 2025
Simple fix :
But ultimately a backend validation is required to never allowed them in a non-compliant state