Details
-
Bug
-
Resolution: Fixed
-
Critical
-
master, 5.0.0
-
Triaged
-
Unknown
Description
When attempting to connect to an RBAC-secured bucket, when username != bucketname, cfg_cb is failing to connect, with an error like:
2017/05/23 13:52:34 cfg_cb: OnError, err: HTTP error 401 Unauthorized getting "http://localhost:8091/pools":
2017/05/23 13:52:34 cfg_cb: OnError, err: could not connect to any serverURL: []string{"http://accel:password@localhost:8091"}
The problem may be in CfgCB's implementation of GetCredentials - it looks like it's always returning username as bucketname, even if the user is defined in the url.
Attachments
For Gerrit Dashboard: MB-24522 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81692,5 | MB-24522 - cfg_cb auth failure when bucketname != username | master | go-couchbase | Status: MERGED | +2 | +1 |
81693,4 | MB-24522 - cfg_cb auth failure when bucketname != username | master | cbgt | Status: MERGED | +2 | +1 |