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

dropScope raises BucketNotFound instead of ScopeNotFound

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1
    • None
    • None
    • 1

    Description

      https://docs.couchbase.com/sdk-api/couchbase-ruby-client/Couchbase/Management/CollectionManager.html#drop_scope-instance_method is documented to throw Error::ScopeNotFound

      However

      collections.drop_scope("nonexistentscope") 

      gives

       unable to drop the scope "nonexistentscope" on the bucket "travel-sample": bucket_not_found, context={"error":"11, bucket_not_found","client_context_id":"8bd843f6-1c6b-4234-795f-4ce1799d1677","method":"DELETE","path":"/pools/default/buckets/travel-sample/collections/nonexistentscope","http_status":404,"http_body":"{\\"errors\\":{\\"_\\":\\"Scope with name \\\\\\"nonexistentscope\\\\\\" is not found\\"}}","last_dispatched_to":"[::1]:8091","last_dispatched_from":"[::1]:55758"} (Couchbase::Error::BucketNotFound) 

      Attachments

        Issue Links

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

          Activity

            There are no comments yet on this issue.

            People

              avsej Sergey Avseyev
              hakim.cassimally Hakim Cassimally
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty