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

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            ben.thompson Ben Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration