[BUG] DelayReportData defers wildcard subscriptions globally instead of only targeted endpoints
Reproduction steps
- Create a wildcard subscription that includes multiple endpoints (for example, a wildcard attribute or event subscription covering both endpoint A and endpoint B).
- Send an Invoke request containing DelayReportData that targets only endpoint B.
- Observe that the scheduling logic defers the wildcard subscription even though the invoke request was only targeting endpoint B.
- The result is that unrelated reports from endpoint A are also delayed, which violates endpoint-scoped deferral behavior.
Bug prevalence
Always for wildcard subscriptions when DelayReportData is used with endpoint-specific invoke targets.
GitHub hash of the SDK that was being used
PR #73043 / local checkout of project-chip/connectedhomeip
Platform
core
Platform Version(s)
No response
Anything else?
This issue is reproduced by the DelayReportData implementation in PR #73043.
The report defer logic checks each subscription by calling ReadHandler::PathListsContainAnyEndpoint(). For wildcard endpoint paths, that function currently returns true immediately, so the whole subscription is treated as matching the invoke-targeted endpoints even when only one endpoint should be deferred.
This causes endpoint-scoped deferral to be applied too broadly: a wildcard subscription covering both endpoint A and endpoint B is deferred when only endpoint B is targeted, delaying unrelated reports from endpoint A as well.
Relevant PR: https://github.com/project-chip/connectedhomeip/pull/73043
This issue should be fixed by making deferral endpoint-aware for wildcard subscriptions, rather than deferring the entire subscription when only a subset of its paths should be delayed.
Source: project-chip/connectedhomeip