Description
Steps to Reproduce
- Setup a Couchbase 4.6.3 1 node cluster using vagrant
- Enable the beer-sample
- Execute the view via CURL (This is the same http request that python uses)
curl "http://10.111.163.101:8092/beer-sample/_design/beer/_view/brewery_beers?connection_timeout=60000&inclusive_end=true&limit=6&skip=0&stale=false"
- Look at the bucket map via CURL (SDKs fall back to this end point)
curl "http://h10.111.163.101:8091/pools/default/buckets/beer-sample"
- Add a 5.0.0 node to the cluster ()
- Execute the view via CURL against the 5.0.0 node (This is the same http request that python uses)
curl "http://10.111.163.102:8092/beer-sample/_design/beer/_view/brewery_beers?connection_timeout=60000&inclusive_end=true&limit=6&skip=0&stale=false"
- Look at the bucket map via CURL against the 5.0.0 node (SDKs fall back to this end point)
curl "http://10.111.163.102:8091/pools/default/buckets/beer-sample"
- Remove the 4.6.3 node
- Execute the view curl again, this time it fails with 401 error.
curl "http://10.111.163.102:8092/beer-sample/_design/beer/_view/brewery_beers?connection_timeout=60000&inclusive_end=true&limit=6&skip=0&stale=false"
- Execute the vbucket curl again, this time it fails with 401 error.
curl "http://10.111.163.102:8091/pools/default/buckets/beer-sample"
Problem
Breaking API change, when there was a passwordless bucket those endpoint were accessible without authentication. The python SDK does not set authentication on view request.
Expectation
For the old SDK to work during an upgrade to 5.0.0
Attachments
Issue Links
- is duplicated by
-
PYCBC-459 Get key in view result failing with 401 for blank password in CBSV5.0
- Closed