[JCBC-242] The flush() operations always fails with "401 Unathorized" message Created: 08/Feb/13  Updated: 08/Feb/13  Resolved: 08/Feb/13

Status: Resolved
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1.2
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Balint Ureczky Assignee: Michael Nitschinger
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: 1m
Time Spent: Not Specified
Original Estimate: 1m
Environment: uname -a
Linux Mint 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Java couchbase client library
1.1.2 taken from: http://files.couchbase.com/maven2/couchbase/couchbase-client/1.1.2/couchbase-client-1.1.2.jar

Attachments: Java Source File CouchbaseMagic.java    
Issue Links:
duplicates JCBC-173 flush will not work owing to MB-7381 Resolved

The flush operations seems to require some kind of authorization, however the client library does not provide a way to do it.

The documentation is does not mention anything about this.

Is there a magical way I can call flush?
I attached the source code which reproduces the problem.

Comment by Michael Nitschinger [ 08/Feb/13 ]
Note that this is a known limitation because of the CouchbaseServer

See the linked issue for more information!
Comment by Michael Nitschinger [ 08/Feb/13 ]
Note that this is marked to be fixed in 2.0.1 which is the next bugfix release of couchbase server. Once upgraded, it should "magically" work!
Generated at Sat Nov 29 01:46:30 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.