Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5245

MaxCtrl does not accept dot notation for nested parameters

    XMLWordPrintable

Details

    • MXS-SPRINT-217

    Description

      During the investigation of MXS-5244, I noticed that it's not possible to create a nosqlprotocol listener without passing all of the nested parameters as a single JSON object.

      $ maxctrl create listener RW-Split-Router MongoDB-Listener-2 5556 protocol=nosqlprotocol nosqlprotocol.user=nosql_admin nosqlprotocol.password=123456
      Error: Server at http://127.0.0.1:8989 responded with 400 Bad Request to `POST listeners`
      {
          "errors": [
              {
                  "detail": "listener: The parameter 'nosqlprotocol.user' is unrecognized."
              },
              {
                  "detail": "listener: The parameter 'nosqlprotocol.password' is unrecognized."
              }
          ]
      }
      

      The following command works:

      $ maxctrl create listener RW-Split-Router MongoDB-Listener-2 5556 protocol=nosqlprotocol 'nosqlprotocol={"user":"nosql_admin","password": "123456"}'
      OK
      

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.