Skip to content

CBL-8290: Reject replication filter requests on unexpected errors#479

Merged
pasin merged 1 commit into
release/3.3from
CBL-8290
May 13, 2026
Merged

CBL-8290: Reject replication filter requests on unexpected errors#479
pasin merged 1 commit into
release/3.3from
CBL-8290

Conversation

@pasin

@pasin pasin commented May 13, 2026

Copy link
Copy Markdown
Collaborator
  • 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

github-actions Bot commented May 13, 2026

Copy link
Copy Markdown

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

pasin commented May 13, 2026

Copy link
Copy Markdown
Collaborator Author

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

Copilot AI left a comment

Copy link
Copy Markdown

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 callback failure handling to fail closed by rejecting filter requests under unexpected error conditions.

Changes:

  • Reject unrecognized collection filter callbacks instead of allowing them.
  • Reject missing filter callbacks instead of allowing them.
  • Reject null document/revision IDs and update warning messages.

💡 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 d8891ab into release/3.3 May 13, 2026
5 checks passed
@pasin pasin deleted the CBL-8290 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