Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
7.1.0
-
Enterprise Edition 7.1.0 build 1545
-
Untriaged
-
Centos 64-bit
-
-
1
-
Unknown
Description
STEPS
Create an rbac user john having following permissions.
Manage Scope Functions [src_bucket:_default] , Data Writer [metadata:*:*] , Data Writer [dst_bucket:*:*] , Data Reader [metadata:*:*] , Data DCP Reader [src_bucket:*:*] , Data DCP Reader [dst_bucket:*:*]
|
Login as user John.
CASE A
Import and deploy advanced_bucket_op handler (https://issues.couchbase.com/secure/attachment/165359/advance_bucket_op.json).
Add docs into src_bucket, mutations are processed as expected.
Remove docs from src_bucket, mutations are processed as expected.
CASE B
Import and deploy bucket_op handler (https://issues.couchbase.com/secure/attachment/165360/bucket_op-2.json).
Add docs into src_bucket, mutations are processed as expected.
Remove docs from src_bucket, mutations are failing with LCB_ERR_AUTHENTICATION_FAILURE (206) even though user has required set of permissions.
2021-10-22T17:11:25.043+05:30 [INFO] {"exception":"{\n \"message\": {\n \"code\": 16,\n \"desc\": \"LCB_ERR_AUTHENTICATION_FAILURE (206): Authentication error\",\n \"name\": \"LCB_ERR_AUTHENTICATION_FAILURE\"\n },\n \"stack\": \"Error\\n at OnDelete (bucket_op.js:9:28)\"\n}","file":"bucket_op.js","line":8,"srcLine":"delete dst_bucket[meta.id];","stack":"Error\n at OnDelete (bucket_op.js:9:28)"} |
2021-10-22T17:11:24.173+05:30 [INFO] "Doc deleted/expired" "pymc1" |
2021-10-22T17:11:22.813+05:30 [INFO] {"exception":"{\n \"message\": {\n \"code\": 16,\n \"desc\": \"LCB_ERR_AUTHENTICATION_FAILURE (206): Authentication error\",\n \"name\": \"LCB_ERR_AUTHENTICATION_FAILURE\"\n },\n \"stack\": \"Error\\n at OnDelete (bucket_op.js:9:28)\"\n}","file":"bucket_op.js","line":8,"srcLine":"delete dst_bucket[meta.id];","stack":"Error\n at OnDelete (bucket_op.js:9:28)"} |