Details
-
Bug
-
Resolution: Won't Fix
-
Blocker
-
None
-
1.1.8
-
Security Level: Public
-
None
-
Server: CentOS 2.6.32 x86_64, Client: MacOS Darwin 12.4.0, Java 1.6
Description
new CouchbaseClient(servers, "default", "username", "password") doesn't honor provided username and always use bucket as username during HTTP authorization step.
Outgoing request is:
FINE: sun.net.www.MessageHeader@658f73867 pairs:
Text value of Authorization header corresponds to "Basic default:password", while it should be "Basic username:password"
Therefore 401 unauthorized response received:
sun.net.www.MessageHeader@92f1bf07 pairs:
The actual bug hides at line #131 of method com.couchbase.client.CouchbaseConnectionFactoryBuilder.buildCouchbaseConnection(final List<URI> baseList, final String bucketName, final String usr, final String pwd), wher usr parameter is not used anyhow and just ignored