Skip to content

fix(IntegrityCheck): Ensure the check is run if no results are available - #46174

Merged
skjnldsv merged 1 commit into
masterfrom
fix/integrity-check
Jul 4, 2024
Merged

fix(IntegrityCheck): Ensure the check is run if no results are available#46174
skjnldsv merged 1 commit into
masterfrom
fix/integrity-check

Conversation

@susnux

@susnuxsusnux commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

Summary

If there are no cached results the current implementation was also returning an empty array, but this was the same as when there was a successful run. So to distinguish this we return null if there are no results. In this case we need to rerun the integrity checker.

Checklist

@susnuxsusnux added bug 3. to review Waiting for reviews php Pull requests that update Php code labels Jun 27, 2024
@susnuxsusnux added this to the Nextcloud 30 milestone Jun 27, 2024
@susnux
susnuxforce-pushed the fix/integrity-check branch from 9c5e92d to 9373347CompareJune 27, 2024 13:27
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable28

Comment threadlib/private/IntegrityCheck/Checker.php Outdated
If there are no cached results the current implementation was also returning an empty array,
but this was the same as when there was a successful run.
So to distinguish this we return `null` if there are *no* results.
In this case we need to rerun the integrity checker.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnuxforce-pushed the fix/integrity-check branch from 9373347 to 8fc498fCompareJuly 3, 2024 09:37
@susnux
susnux requested a review from come-ncJuly 3, 2024 09:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugfeature: settingsphpPull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@susnux@icewind1991@yemkareems@come-nc@joshtrichards@skjnldsv