[RCBC-10] CouchBase 2.0 Ruby Lib write to default bucket even if you specify :bucket_name Created: 03/Nov/11  Updated: 13/Nov/12  Resolved: 16/Dec/11

Status: Closed
Project: Couchbase Ruby client library
Component/s: library
Affects Version/s: None
Fix Version/s: 0.9.8
Security Level: Public

Type: Bug Priority: Blocker
Reporter: nexneo Assignee: Sergey Avseyev
Resolution: Fixed Votes: 0
Labels: couchbase-ruby-client
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Mac OS X, Ruby 1.9.2 p290


 Description   
I have created bucket for each Rails env so test data remain separate. But it doesn't work as Ruby library 0.9.7 always store data on default bucket.

Couchbase.new("http://127.0.0.1:8091/pools/default", :bucket_name => 'test', :format => :document)

 Comments   
Comment by nexneo [ 02/Dec/11 ]
This issues can be related to, http://www.couchbase.org/issues/browse/MB-4493
Comment by Matt Ingenthron [ 08/Dec/11 ]
Thanks for the bug report, we'll look into it.
Comment by Matt Ingenthron [ 08/Dec/11 ]
Note this needs to be fixed for upcoming 1.8
Comment by Sergey Avseyev [ 14/Dec/11 ]
It is fixed and on review here http://review.couchbase.org/11652

The issue was in authentication. Couchbase uses SASL authentication not only for restricting access, but also for choosing bucket (one of the ways).
Comment by Sergey Avseyev [ 16/Dec/11 ]
I released new version 0.9.8 with fix you can find it at https://rubygems.org/gems/couchbase

or just 'gem update couchbase'
Comment by nexneo [ 25/Dec/11 ]
Sergey now it works with bucket with dedicated port assigned But it can't connect with bucket with password because it can not see it in bucket list here, https://github.com/couchbase/couchbase-ruby-client/blob/master/lib/couchbase/bucket.rb#L59

So, for bucket with password it always throws error "There no such bucket with name 'test' in pool default"
Generated at Sat Sep 20 06:37:15 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.