DESCRIPTION

JCBC-1096: Explicitly handle auth errors on observe.

Motivation
----------
With Server 5.0 and RBAC it is now possible that a user only has
write access but not read access, leading to the situation where
a PersistTo or ReplicateTo might fail after correctly storing
the doc but then the user is not allowed to use the observe
command.

Modifications
-------------
This change explicitly checks for authentication errors and
supplies a helpful message, including the enhanced error
messages back to the user.

Result
------
If the user is performing an op and it now fails because
of an auth issue, the error message is now clear.

Change-Id: I252afa4dcad50078474285d13c0c38269b17f46d


COMMENTS

author: Natasha Sullivan
date: 2017-08-23 07:59:36.778000000

Uploaded patch set 1.

-------------------------------------
author: Hugo Blankenship
date: 2017-08-23 07:59:44.559000000

Patch Set 1:

Build Started http://sdkbuilds.sc.couchbase.com/job/couchbase-jvm-core-test/44/

-------------------------------------
author: Hugo Blankenship
date: 2017-08-23 08:01:28.664000000

Patch Set 1: Verified-1

Build Failed 

http://sdkbuilds.sc.couchbase.com/job/couchbase-jvm-core-test/44/ : FAILURE

-------------------------------------
author: Hugo Blankenship
date: 2017-08-23 08:20:59.396000000

Patch Set 1:

Build Started http://sdkbuilds.sc.couchbase.com/job/couchbase-jvm-core-test/45/

-------------------------------------
author: Hugo Blankenship
date: 2017-08-23 08:22:21.085000000

Patch Set 1: Verified+1

Build Successful 

http://sdkbuilds.sc.couchbase.com/job/couchbase-jvm-core-test/45/ : SUCCESS

-------------------------------------
author: Carmen Buckley
date: 2017-08-23 16:43:05.227000000

Patch Set 1: Code-Review+2

-------------------------------------
