Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-13933 Client Policies
  3. KEYCLOAK-18280

Issues with boolean properties of executors

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 14.0.0
    • Component/s: None
    • Labels:
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      There are 2 issues in the boolean properties resolving for the JSON with executors:
      1) When I update some executor property in the admin console, the property is saved in the JSON as a String:

              {
                "executor": "pkce-enforcer",
                "configuration": {
                  "auto-configure": "true"
                }
              }
      

      It will be better if it is saved as proper boolean:

              {
                "executor": "pkce-enforcer",
                "configuration": {
                  "auto-configure": true
                }
              }
      

      2) When the property, which is saved as boolean is displayed back, it is displayed in the admin console as OFF. So for example when I manually fix the JSON configuration to contain `true` instead of `"true"` like this:

              {
                "executor": "pkce-enforcer",
                "configuration": {
                  "auto-configure": true
                }
              }
      

      Then the switch is displayed as being OFF in the admin console. To be displayed as ON, it is needed to be displayed as a String.

        Attachments

          Activity

            People

            Assignee:
            mposolda@redhat.com Marek Posolda
            Reporter:
            mposolda@redhat.com Marek Posolda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: