Files
floci/src/test/java
Jos Huiting 34084fef87 fix(eventbridge): enforce \$or negation in event pattern matching (#1068)
\$or was silently ignored — the key was never read from the parsed
pattern, so rules using \$or routed every source/detail-type-matched
event regardless of the OR conditions.

Add \$or handling to both matchesPattern (top-level) and
matchesDetailNode (detail-level):
- iterate each sub-pattern; return false if none match
- skip the \$or key in the regular field-by-field AND loop

Top-level \$or sub-patterns are full event patterns, so each is
evaluated via recursive matchesPattern call. Detail-level sub-patterns
are field-match objects, evaluated via recursive matchesDetailNode on
the same actual node.
2026-05-29 00:58:55 -05:00
..