Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Empty moduleType disallows all RPC requests after ignition cycle #2547

Closed
Jack-Byrne opened this issue Aug 28, 2018 · 0 comments
Closed

Empty moduleType disallows all RPC requests after ignition cycle #2547

Jack-Byrne opened this issue Aug 28, 2018 · 0 comments

Comments

@Jack-Byrne
Copy link
Collaborator

[Delete any non-applicable sections, but we may ask for more information.]

Bug Report

When a moduleType is left empty as such:

        "app_policies": {
            "default": {
                "keep_context": false,
                "steal_focus": false,
                "priority": "NONE",
                "default_hmi": "NONE",
                "groups": ["Base-4", "RemoteControl"],
                "RequestType": [],
                "RequestSubType": [],
                "moduleType": []
            },

The process of saving the cached policy table to policy.sqlite does not account for an empty moduleType array. This leaves the moduleType field in the SQL DB empty so when core is cycled and the SQL Db is read into memory again, moduleType is marked as missing and all RC rpcs are disallowed.

Reproduction Steps
  1. Change preloaded pt app_policies default to object above.
  2. Start core, stop core, restart core
  3. Connect RC app, put in full, and send any RC rpc
Expected Behavior

All RC RPCs for all moduleTypes should return success.

Observed Behavior

All module types for all RC requests return disallowed.

OS & Version Information
  • OS/Version: Ubuntu
  • SDL Core Version: Develop
  • Testing Against: SPT
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant