Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-76

Better error message when user does not have "Data DCP Reader" role.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 0.16.0
    • None
    • None
    • 1

    Description

      To reproduce the issue, modify the AirportsInFrance sample app to specify the username and password of a user who does not have the "Data DCP Reader" role. When you run the app, the log is flooded with this stack trace:

      17:00:14.701 [nioEventLoopGroup-2-12] INFO  c.c.client.dcp.conductor.DcpChannel - Connect attempt to localhost/127.0.0.1:11210 failed.
      java.lang.IllegalStateException: Could not open DCP Connection: Failed in the OPEN step, response status is 36
      	at com.couchbase.client.dcp.transport.netty.DcpConnectHandler.channelRead0(DcpConnectHandler.java:159)
      	at com.couchbase.client.dcp.transport.netty.DcpConnectHandler.channelRead0(DcpConnectHandler.java:43)
      	at com.couchbase.client.deps.io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      

      The DCP client should interpret response status 36 (0x0024 No Access) as a fatal error and include a helpful message in the stack trace.

      Attachments

        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