Skip to content

fix(dav): Create SAB at installation - #51144

Merged
ChristophWurst merged 1 commit into
masterfrom
fix/dav/create-sab-install
Mar 7, 2025
Merged

fix(dav): Create SAB at installation#51144
ChristophWurst merged 1 commit into
masterfrom
fix/dav/create-sab-install

Conversation

@ChristophWurst

@ChristophWurstChristophWurst commented Feb 28, 2025

Copy link
Copy Markdown
Member
  • Resolves: n/a

Summary

The SAB is created on demand. Weirdly enough this only happens for the second user of an instance, and in high concurrent setups there can be a race for the creation of the AB.
This moves the creation to an install repair step that is run once at installation time.

This change was tested with nextcloud/mail#10707. Recently Mail integration tests failed when the SAB didn't exist and tests created it while being in a transaction.

TODO

  • do

Checklist

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable30

@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

/backport to stable29

Comment threadapps/dav/tests/unit/Migration/CreateSystemAddressBookStepTest.php Outdated
@susnuxsusnux added this to the Nextcloud 32 milestone Mar 2, 2025

@kesselbkesselb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪

@ChristophWurst
ChristophWurstforce-pushed the fix/dav/create-sab-install branch from 0dc9390 to 2528e70CompareMarch 3, 2025 11:34
@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 3, 2025
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@kesselb
kesselbforce-pushed the fix/dav/create-sab-install branch from 2528e70 to ec664b0CompareMarch 6, 2025 17:40
@kesselb
kesselb requested a review from a team as a code ownerMarch 6, 2025 17:40
@kesselb
kesselb requested review from icewind1991, provokateurin and yemkareems and removed request for a teamMarch 6, 2025 17:40
@ChristophWurst
ChristophWurst removed the request for review from icewind1991March 6, 2025 17:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: carddavRelated to CardDAV internalsfeature: dav

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants

@ChristophWurst@kesselb@provokateurin@SebastianKrupinski@susnux@skjnldsv