Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4773

columnstoreAlias script breaks on x-api-key containing '=' characters

    XMLWordPrintable

Details

    Description

      mcsapikey=$(grep -r 'x-api-key' /etc/columnstore/cmapi_server.conf | cut -d= -f2 | xargs)
      

      The cut -d= is meant to seperate the key/value to store as variable in script
      This line does not handle if the x-api-key value contains an actual '=' characters and will break the commands giving 401 errors.

      Command should be modified to the following

      mcsapikey=$(grep -r 'x-api-key' /etc/columnstore/cmapi_server.conf | cut -d= -f2- | xargs)
      

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            ben.thompson Ben Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.