Skip to content
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(dav): Create SAB at installation #51144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Feb 28, 2025

  • 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
Member Author

/backport to stable31

@ChristophWurst
Copy link
Member Author

/backport to stable30

@ChristophWurst
Copy link
Member Author

/backport to stable29

declare(strict_types=1);

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors

protected function setUp(): void {
parent::setUp();

$this->syncService = $this->createMock(SyncService::class);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a class member for syncService and step to avoid the deprecation warning.

@susnux susnux added this to the Nextcloud 32 milestone Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

4 participants