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

XDCR needs to handle special characters in username and password

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1.0
    • 4.0.0
    • None
    • Security Level: Public
    • None
    • Unknown

    Description

      When the password for a cluster contains special characters (e.g. '/', ':', '@') goxdcr has issues saving remote cluster reference to that cluster since the following call would fail:

      url := fmt.Sprintf("http://%s:%s@%s", remoteUsername, remotePassword, remoteConnectStr)
      client, err := couchbase.Connect(url)

      Need to escape the remotePassword before passing it to go-couchbase.

      The same needs to be done for username as well, which cannot contain "/" but could contain other special chars like "#".

      Another issue identified is that goxdcr exited with status 0 rather than 1 when migration service failed.

      Attachments

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

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            yu Yu Sui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty