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

[CBM] Behavior of the '-p' flag is odd/undefined when passwords start with '-'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • backlog
    • 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.5.1, 6.6.0, 6.6.1, 6.6.2, 6.5.2, 6.5.0, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.1.3
    • tools
    • None
    • Untriaged
    • 0
    • No

    Description

      What's the issue?
      When supplying a password which is prefixed with -, the --password flag will attempt to prompt for a user password.

      $ cbbackupmgr backup -a ~/Projects/couchbase-archive -r repo -c 172.20.1.1:8091 -u Administrator -p '-asdasd'
      Password for -p:
       
      $ cbbackupmgr backup -a ~/Projects/couchbase-archive -r repo -c 172.20.1.1:8091 -u Administrator -p -- '-asdasd'
      Password for -p:
      

      What's the fix?
      We should correctly handle this case, or change the behavior of --password.

      Is there a workaround?
      Yes, use the CB_PASSWORD environment variable to supply the password instead.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty