Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
The current code always appends brackets [] regardless of whether the role you want to add requires them or not. For example using the Role.
user := gocb.User{ Username: username, DisplayName: usernameConfig.DisplayName, Password: password, Roles: []gocb.Role{
, }, }
produces this error from the couchbase server...
couchbase_test.go:140: err: {"errors":{"roles":"Cannot assign roles to user because the following roles are unknown, malformed or role parameters are undefined: [ro_admin[]]"}} |
{"unique_id":"157521e8-de25-4a23-b76b-fb7164a6b006","endpoint":"[http://localhost:8091"}|http://localhost:8091%22%7D]
Attachments
For Gerrit Dashboard: GOCBC-887 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
127828,3 | GOCBC-887: Fixed bug in UpsertUser regarding Global Role handling. | master | gocb | Status: MERGED | +2 | +1 |