Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
For Gerrit Dashboard: MB-16522 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
56020,6 | MB-16522 fix issue with special chars in password | master | goxdcr | Status: MERGED | +2 | +1 |
56081,2 | MB-16522 fix issue with special chars in password | sherlock | goxdcr | Status: MERGED | +2 | +1 |