-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(encryption): Clicking default module in UI sets bogus value #44604
Conversation
/compile amend / |
337a165
to
8f3c673
Compare
/backport to stable29 |
/backport to stable28 |
/backport to stable27 |
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.
👍
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Summary
update()
was hard coded to return a yes/no string value just to handleenableEncryption()
's value. Sinceupdate()
is also used for setting the default encryption module (which is not a simple yes/no value), whenever the default encryption module radio button was clicked the server value was being set toyes
too (which is bogus).server/apps/settings/src/components/Encryption.vue
Lines 132 to 156 in 497a863
server/apps/settings/src/components/Encryption.vue
Lines 60 to 68 in 497a863
How to test:
default_encryption_module
(e.g.occ config:list core
)Correct value:
OC_DEFAULT_MODULE
(which it'll be if you're careful not to click anywhere initially)Bogus value:
yes
(which it'll change to if you click anywhere without this PR)If your default_encryption_module is set to
yes
try this command to manually remedy:occ encryption:set-default-module OC_DEFAULT_MODULE
TODO
Checklist