cotag / libcouchbase

libcouchbase ruby FFI with libuv integration
Other
11 stars 8 forks source link

[Possible bug] Couchbase 5.0.0 compatibility #7

Closed MrRezaque closed 6 years ago

MrRezaque commented 6 years ago

Hey,

It looks like it can't connect to couchbase 5.0, when it works just fine with 4.x. Can you verify that?

I did a quick bootstrap docker image https://github.com/MrRezaque/couchbase-version-showcase. It installs a database and creates one sample bucket(travel-sample) and one custom bucket ('cp-test'). You need to choose db version in Dockerfile by uncommenting one of first 2 lines and run in with your_favarite_shell run_db.sh

PS Your reaction speed on my last issue was amazing, ty :+1:

Thanks, Yar

MrRezaque commented 6 years ago

It looks like they changed default auth behavior, because I still can connect to bucket using user-password

stakach commented 6 years ago

I did update it very recently to support couchbase 5 try using gem version 1.2.1 You can see the tests passing and setup details in https://github.com/cotag/libcouchbase/blob/master/.travis.yml#L18

The auth change removed buckets that don't have passwords and buckets can no longer have a password directly - so you have to create a user for bucket access and use those credentials.

I also created a global for specifying a default username and password, so you don't need to define it every time https://github.com/cotag/libcouchbase/blob/master/spec/bucket_spec.rb#L4

MrRezaque commented 6 years ago

@stakach Thanks for pointing out to default creds and clarification. Guess this resolved :+1: