-
-
Couldn't load subscription status.
- Fork 4.6k
fix(files_sharing): ensure password or date is enabled by default to be enforced #54159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
/backport 627f8ca to stable31 |
|
/backport 627f8ca to stable30 |
This comment was marked as resolved.
This comment was marked as resolved.
74b4467 to
92f666a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
…be enforced Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
92f666a to
7f93711
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
|
@nfebe no, it's been like that forever. |
One could argue you don't remove previously set configs. 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
|
Summary
The same behaviour can be seen for password or date enforce
Always ask for a passwordorSet default expiration date for shares via link or mailAlways ask for a passwordorSet default expiration date for shares via link or mailcheckboxThe 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
Screenshot bug
Checklist