Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-13770

gocouchbase pool.GetBucket() fails when there is "%" in the bucket name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 4.0.0
    • clients, query
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      goxdcr uses the following gocouchbase calls to get bucket:

      client, err := couchbase.ConnectWithAuth(url, cbauth.NewAuthHandler(nil))
      pool, err := client.GetPool("default")
      bucket, err := pool.GetBucket(bucketName)

      When bucketName contains a "%", e.g., "test%", GetBucket() fails with the following error:
      HTTP error 404 Object Not Found getting \"http://127.0.0.1:9000/pools/default/buckets/test%2525?bucket_uuid=17b51d98354c5fbede6204a75665e16e\": Requested resource not found.\r\n

      an extra "2525" was appended to bucketName in the pools/default/buckets url, which caused it to fail.

      Attachments

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

        Activity

          People

            manik Manik Taneja (Inactive)
            yu Yu Sui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                PagerDuty