Skip to content

CBL-8291: Reject replication filter requests on unexpected errors#478

Merged
pasin merged 1 commit into
release/3.2from
CBL-8291
May 13, 2026
Merged

CBL-8291: Reject replication filter requests on unexpected errors#478
pasin merged 1 commit into
release/3.2from
CBL-8291

Conversation

@pasin
Copy link
Copy Markdown
Collaborator

@pasin pasin commented May 13, 2026

  • Changed ReplicationCollection filter callback to return false (reject) rather than true (allow) when encountering unexpected error conditions.

  • Updated comments and log messages.

* Changed ReplicationCollection filter callback to return false (reject) rather than true (allow) when encountering unexpected error conditions.

* Updated comments and log messages.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

This is a release branch and commits are restricted.

Please confirm this PR is one of the following:

  • A response to a customer ask
  • A change per our security policy
  • A non-functional change (i.e. changes needed for building an older version)
  • A change that has been granted an exception (please comment)

@pasin
Copy link
Copy Markdown
Collaborator Author

pasin commented May 13, 2026

The change has been approved to correct and sync behavior per the a fix for a customer in .NET.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR changes replication filter callbacks to fail closed when unexpected filter callback states occur, aligning the replicator behavior with safer rejection semantics.

Changes:

  • Returns false instead of true for unrecognized collections.
  • Returns false when the expected push/pull filter is missing.
  • Returns false for null document or revision IDs, with updated warning logs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pasin pasin requested review from borrrden May 13, 2026 19:45
@pasin pasin merged commit 4eb6626 into release/3.2 May 13, 2026
5 checks passed
@pasin pasin deleted the CBL-8291 branch May 13, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants