Skip to content

[stable32] Fix reenabling system address book#59956

Open
danxuliu wants to merge 3 commits intostable32from
fix-reenabling-system-address-book-in-stable32
Open

[stable32] Fix reenabling system address book#59956
danxuliu wants to merge 3 commits intostable32from
fix-reenabling-system-address-book-in-stable32

Conversation

@danxuliu
Copy link
Copy Markdown
Member

Fixes #57329

When system_addressbook_exposed is set through the administration settings it is set as a boolean value in IAppConfig which, in the end, stores it as 0 or 1. However, when read from IConfig in UserAddressBooks it was strictly compared against "yes", so even if explicitly enabled the comparison always failed and the system address book was always seen as disabled. To solve that now the comparison is made against a boolean value in IAppConfig, which is also consistent with other places where the value is got.

Note that the problem does not happen in stable33 and later because in those versions getValueBool is used being already since system_addressbook_exposed was registered in the lexicon

Due to that besides the fix itself a couple of minor refactorings were added to make the code more similar to stable33 for consistency.

How to reproduce

  • Enable the Contacts app
  • Open the Groupware administration settings
  • Disable the system address book
  • Enable the system address book again
  • Open the Contacts app
  • Open its settings
  • Check the available address books

Result with this pull request

The system address book is available

Result without this pull request

The system address book is not available

@danxuliu danxuliu added bug 2. developing Work in progress feature: carddav Related to CardDAV internals labels Apr 28, 2026
This makes the code more consistent with stable33 and later.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
This makes the code more consistent with stable33 and later.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
When "system_addressbook_exposed" is set through the administration
settings it is set as a boolean value in IAppConfig which, in the end,
stores it as "0" or "1". However, when read from IConfig in
UserAddressBooks it was strictly compared against "yes", so even if
explicitly enabled the comparison always failed and the system address
book was always seen as disabled. To solve that now the comparison is
made against a boolean value in IAppConfig, which is also consistent
with other places where the value is got (like ContactsManager).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the fix-reenabling-system-address-book-in-stable32 branch from 85ae19d to b26329e Compare April 28, 2026 09:15
@danxuliu danxuliu added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 28, 2026
@danxuliu danxuliu marked this pull request as ready for review April 28, 2026 10:33
@danxuliu danxuliu requested review from Altahrim, ArtificialOwl, come-nc and icewind1991 and removed request for a team April 28, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: carddav Related to CardDAV internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants