Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-10

CouchBase 2.0 Ruby Lib write to default bucket even if you specify :bucket_name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.8
    • Component/s: library
    • Security Level: Public
    • 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)

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        nexneo nexneo created issue -
        Hide
        nexneo nexneo added a comment -

        This issues can be related to, http://www.couchbase.org/issues/browse/MB-4493

        Show
        nexneo nexneo added a comment - This issues can be related to, http://www.couchbase.org/issues/browse/MB-4493
        Hide
        ingenthr Matt Ingenthron added a comment -

        Thanks for the bug report, we'll look into it.

        Show
        ingenthr Matt Ingenthron added a comment - Thanks for the bug report, we'll look into it.
        ingenthr Matt Ingenthron made changes -
        Field Original Value New Value
        Fix Version/s 1.8 beta [ 10258 ]
        Priority Major [ 3 ] Blocker [ 1 ]
        Hide
        ingenthr Matt Ingenthron added a comment -

        Note this needs to be fixed for upcoming 1.8

        Show
        ingenthr Matt Ingenthron added a comment - Note this needs to be fixed for upcoming 1.8
        ingenthr Matt Ingenthron made changes -
        Assignee Matt Ingenthron [ ingenthr ] Sergey Avseyev [ avsej ]
        avsej Sergey Avseyev made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        avsej Sergey Avseyev added a comment -

        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).

        Show
        avsej Sergey Avseyev added a comment - 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).
        Hide
        avsej Sergey Avseyev added a comment -

        I released new version 0.9.8 with fix you can find it at https://rubygems.org/gems/couchbase

        or just 'gem update couchbase'

        Show
        avsej Sergey Avseyev added a comment - I released new version 0.9.8 with fix you can find it at https://rubygems.org/gems/couchbase or just 'gem update couchbase'
        avsej Sergey Avseyev made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        nexneo nexneo added a comment -

        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"

        Show
        nexneo nexneo added a comment - 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"
        avsej Sergey Avseyev made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 15527 ] Couchbase SDK Workflow [ 44797 ]

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            nexneo nexneo
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes