Details
Description
goxdcr uses the following gocouchbase calls to get bucket:
client, err := couchbase.ConnectWithAuth(url, cbauth.NewAuthHandler(nil))
pool, err := client.GetPool("default")
bucket, err := pool.GetBucket(bucketName)
When bucketName contains a "%", e.g., "test%", GetBucket() fails with the following error:
HTTP error 404 Object Not Found getting \"http://127.0.0.1:9000/pools/default/buckets/test%2525?bucket_uuid=17b51d98354c5fbede6204a75665e16e\": Requested resource not found.\r\n
an extra "2525" was appended to bucketName in the pools/default/buckets url, which caused it to fail.