Details
-
Improvement
-
Resolution: Fixed
-
Major
-
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.