You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DeviceCommissioner::CommissioningComplete function added in #9041 uses GetDevice, not GetConnectedDevice, so does not ensure that there is an actual CASE session to the given node id.
Proposed Solution
Fix that. Though see #9480 about whether this function should exist in the first place.
And maybe rename GetDevice to GetMaybeDisconnectedDevice to make it clearer what it does?
@bzbarsky-appleCommissioningComplete function gets called after OperationalDiscoveryComplete function. In OperationalDiscoveryComplete function GetConnectedDevice API is called. Hence CommissioningComplete API will be called only after successful CASE session.
CommissioningComplete function gets called after OperationalDiscoveryComplete function
This requirement is not documented in the API documentation for CommissioningComplete, and is relying on implementation details of other functions that might change, no? This is basically a bug waiting to happen.
Problem
The
DeviceCommissioner::CommissioningComplete
function added in #9041 usesGetDevice
, notGetConnectedDevice
, so does not ensure that there is an actual CASE session to the given node id.Proposed Solution
Fix that. Though see #9480 about whether this function should exist in the first place.
And maybe rename
GetDevice
toGetMaybeDisconnectedDevice
to make it clearer what it does?@sweetymhaiske @pan-apple
The text was updated successfully, but these errors were encountered: