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

Mock server returns incorrect entry set when filter contains (! (& (...))) or (! (| (...))) #1088

Open
qha opened this issue May 8, 2023 · 0 comments

Comments

@qha
Copy link

qha commented May 8, 2023

When computing elements of an "and" or "or" node evaluate_filter_node in the mock server handles the unmatched elements just like the matched elements.

What it really ought to do is to use:

  • "or" logic for matched elements when handling unmatched "and" elements
  • "and" logic for matched elements when handling unmatched "or" elements

This is where i found the issue (current latest commit on dev):

elif node.tag == AND:

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

No branches or pull requests

1 participant