Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1506

Improve backoff/retry when user does not have permission to access bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.6.2
    • None
    • None
    • None
    • 1
    • SDK14: CLoE + Others

    Description

      Suggested Release Note:

      Reduced the rate at which messages appear in the server's `http_access.log` when valid credentials are provided, but the user does not have permission to access the bucket.

      An SDK configured with credentials for a user who does not have access to the bucket spams the server with HTTP requests for "/pools/default/b/<bucket-name>". It would be nice to throttle these requests somehow.

      To reproduce:

      • Create two buckets, "a" and "b".
      • Create a user and assign "Data Reader" (not "Bucket Admin"!) access for bucket "a".

      public static void main(String... args) throws Exception {
        Cluster cluster = Cluster.connect("127.0.0.1", username, password);
        Bucket bucket = cluster.bucket("b"); // user has no permission for this bucket
        MINUTES.sleep(10);
      }
      

      and tail var/lib/couchbase/logs/http_access.log

      Attachments

        Issue Links

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

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              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