Uh oh!
There was an error while loading. Please reload this page.
fix(CardDAV): allow disabling of the system address book - #39925
Conversation
ChristophWurst
commented
Aug 17, 2023
config:app:set/delete should be sufficient. we don't need dedicated commands right now: https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#config-commands |
miaulalala
commented
Aug 18, 2023
/backport to stable27 |
tcitworld
left a comment
There was a problem hiding this comment.
I feel like just adding an if to the above block where the system address book is added in the first place would be much more efficient, why not do that instead?
(in any case, you need to get the getAppValue call outside of the array_map so that it doesn't get called for each iteration)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tcitworld
left a comment
There was a problem hiding this comment.
Code is fine but I didn't check if that has other consequences elsewhere.
Uh oh!
There was an error while loading. Please reload this page.
52f72b5 to
bb89515Comparebb89515 to
cc10db7Comparemiaulalala
commented
Sep 1, 2023
Failing cypress test is unrelated methinks: |
…ption Signed-off-by: Anna Larch <anna@nextcloud.com>
cc10db7 to
7051f1bComparembiebl
commented
Sep 1, 2023
Applied this patch and everything is working nicely again after disabling the SAB. Thanks a lot! |
sudoer
commented
Sep 1, 2023
I was able to comment out this block of code, and I saw that the "Accounts" address book was no longer exported, as we had hoped. So I am looking forward to the configuration-based fix soon. I did have a question. When this pull request is merged, how would someone set the configuration option? Is it in a config file? Or is there an "occ" command to set the option? Is it eventually stored in the database, or in the code? I imagine this question is a bit outside of the scope of this PR, but it sure would help to have a pointer to how to enable/disable it. Thanks! |
tcitworld
commented
Sep 2, 2023
php occ config:app:set dav system_addressbook_exposed --value=no |
MicKress
commented
Sep 4, 2023
Hi, I have a question. Will the deactivation of system address book only be possible via occ-Command or will there be an point in the administration panel? If you have a managed nextcloud, you cannot often work with occ-commands. Best Regards |
exuded
commented
May 13, 2024
Hello, when using the command given in the documentation, I get the following error: I am a bit confused because in the command is no "-a" part |
tcitworld
commented
May 13, 2024
@exuded Please ask for help on the forum or open your own issue. |

via config option and OCC command
Summary
Allow admins to disable the System Addressbook systemwide.
This might cause complaints from connected clients if the SAB is the default addressbook in their env.
TODO
Checklist