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 permission manager is not reset on disconnection. permissions, filters and currentHMILevel should be reset to the default values when the app disconnects from the head unit.
Subscribers to permission changes will be notified unnecessarily if the new permissions for a subscribed RPC are exactly the same when an OnPermissionsChange notification is received. The sdl_filterPermissionChangesForFilters only checks for the rpcName and not the hmiPermissions and parameterPermissions.
Reproduction Steps
Connect an app to SDL Core. And open the SDL app.
Subscribe to GetVehicleData permissions notifications via the permissions manager.
Trigger an OnPermissionsChange notification that does not include GetVehicleData.
Expected Behavior
The subscriber should not be notified.
Observed Behavior
The subscriber will be notified.
OS & Version Information
iOS Version: n/a
SDL iOS Version: 5.2
Testing Against: n/a
The text was updated successfully, but these errors were encountered:
For (2), this seems like a Core bug. An OnPermissionsChange should only be sent when the permission changed, not, as this report says, "if the new permissions for a subscribed RPC are exactly the same." Perhaps I'm not understanding this correctly.
For (2), this seems like a Core bug. An OnPermissionsChange should only be sent when the permission changed, not, as this report says, "if the new permissions for a subscribed RPC are exactly the same." Perhaps I'm not understanding this correctly.
When the OnPermissionsChange notification is sent, it includes all of the supported RPCs, not just the RPCs whose permissions changed. If the permissions for an RPC did not change, the observer will still be notified. This is because the permission manager assumes that the notification will only include the RPCs whose permissions changed.
Bug Report
permissions
,filters
andcurrentHMILevel
should be reset to the default values when the app disconnects from the head unit.OnPermissionsChange
notification is received. Thesdl_filterPermissionChangesForFilters
only checks for therpcName
and not thehmiPermissions
andparameterPermissions
.Reproduction Steps
GetVehicleData
permissions notifications via the permissions manager.OnPermissionsChange
notification that does not includeGetVehicleData
.Expected Behavior
The subscriber should not be notified.
Observed Behavior
The subscriber will be notified.
OS & Version Information
The text was updated successfully, but these errors were encountered: