Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
5.6.1
-
None
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)
|