Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3651

Empty payload is sent to settingsHandler under certain circumstances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If system is supplied with a preference set, that just holds one setting from its set of available settings. The rest of the settings supported by that solution are triggered using default values (which origin I'm not sure of).

      In case of certain solutions, this default values can't be guessed by the system, and instead it sends a payload with an empty object to the system settings handler. This behavior can be reproduced using the following payload, present in this repository.

      {
          "flat": {
              "name": "monica",
              "contexts": {
                  "gpii-default": {
                      "name": "Default preferences",
                      "preferences": {
                          "http://registry.gpii.net/applications/com.microsoft.windows.mouseSettings":{
                              "SwapMouseButtonsConfig": 1
                          }
                      }
                  }
              }
          }
      }
      
      

      When system tries to call nativeSettingsHandler with a payload with an empty object, a fail is triggered in this line.

      Which leads to a error during the login operation:

      Payload format isn't verified in settingsHandler because SR is a trusted source. So, if this kind of behavior is expected, we should document it, and update the contract that settingsHandler expect from the payload. If not, this is a bug on how preferences are processed and sent to the settingsHandlers.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              JJ JJ - Javier Jaramago Fernández (Inactive)
              Reporter:
              JJ JJ - Javier Jaramago Fernández (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: