Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51310

cbimport with special characters in username & password

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.1.0
    • tools
    • Untriaged
    • Ubuntu 64-bit
    • 1
    • No

    Description

      In Playground, we are accessing cbimport in a Docker environment that is separated from the backend in Go. 

      When the credentials (username/password) contain characters with special meaning in bash like `!$`, how can we escape these characters in cbimport?

      Example (Relevant parts):

      Go Backend

      docker exec container /run-code.sh req.cbUser, req.cbPswd, req.cbHost

      run-code.sh
      !/bin/bash
      CB_USER="$1"
      CB_PSWD="$2"
      CB_HOST="$3"

      /opt/couchbase/bin/cbimport json --format list --verbose \
      -c "https://${CB_HOST}:18091" -u "${CB_USER}" -p "${CB_PSWD}" \
      -b "${BUCKET_NAME}" \
      --scope-collection-exp "_default.${COLLECTION_NAME}" \
      -g %${KEY}% \
      -d ${FILE} \
      --no-ssl-verify
      Username/Password: 
      Some#sf31u!$@#^#%@$
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owend Daniel Owen
            nithish.raghunandanan Nithish Raghunandanan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty