Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
Mixed cluster node1 (6.6), node2 (7.0)
bucket "test" created on node1
bucket "test1" created on node2
(n_0@192.168.0.9)3> ns_config_auth:authenticate("test", "asdasd").
false
(n_0@192.168.0.9)4> ns_config_auth:authenticate("test1", "asdasd").
-
- exception error: no function clause matching misc:compare_secure("asdasd",undefined) (src/misc.erl, line 2781)
in function ns_config_auth:authenticate/2 (src/ns_config_auth.erl, line 111)
- exception error: no function clause matching misc:compare_secure("asdasd",undefined) (src/misc.erl, line 2781)
curl -v http://test1:asdasd@localhost:9000/pools/default => 500
curl -v http://test:asdasd@localhost:9000/pools/default => 401
broken by this change:
http://review.couchbase.org/c/ns_server/+/149105/3/src/menelaus_web_buckets.erl#b453
to fix it we need to make sure that buckets created on 7.0 node in mixed cluster still have
{sasl_password, ""}Attachments
For Gerrit Dashboard: MB-46748 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155064,2 | MB-46748 Add sasl_password if cluster not at 7.0 | cheshire-cat | ns_server | Status: MERGED | +2 | +1 |
155065,2 | MB-46748 Remove is_bucket_auth | cheshire-cat | ns_server | Status: MERGED | +2 | +1 |
155131,2 | Merge remote-tracking branch 'couchbase/cheshire-cat' | master | ns_server | Status: MERGED | +2 | +1 |
161037,1 | Revert "MB-46748 Remove is_bucket_auth" | cheshire-cat | ns_server | Status: ABANDONED | 0 | 0 |