-
Notifications
You must be signed in to change notification settings - Fork 630
Consistently handle filters with empty string as value on optional attributes and extensions #4847
Copy link
Copy link
Closed
Labels
area/apiarea/eventingThe Eventing api groupThe Eventing api groupgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Metadata
Metadata
Assignees
Labels
area/apiarea/eventingThe Eventing api groupThe Eventing api groupgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Describe the bug
Our implementation:
eventing/pkg/eventfilter/attributes/filter.go
Lines 37 to 74 in daa085d
Given a filter like:
and an event like:
# ... all required attributesthe filter passes even though there is no subject.
Given a filter like:
and an event like:
# ... all required attributesthe filter doesn't pass because there is no extension
myextension.Additional context