Details
-
Task
-
Resolution: Won't Fix
-
Major
-
1.2.8
-
None
Description
http://www.couchbase.com/communities/q-and-a/credentials-deploy-view-using-couchbasecluster
I spent some time with the SDK trying to figure this out and it looks like a bug in the client SDK:
var config = new CouchbaseClientConfiguration();
config.Urls.Add(new Uri(ConfigurationManager.AppSettings["CouchbaseServerUrl"] + "/pools"));
config.Password = "Administrator";
config.Username = "password";
config.Bucket = "authenticated";
config.BucketPassword = "secret";
var cluster = new CouchbaseCluster(config);
using (var stream = new FileStream("Data
CityViews.json", FileMode.Open))
Even this doesn’t work and returns a 401 Unauthorized…if you remove the cluster level authentication, then 401 unauthorized is still returned. Note that this will create the design document under the default bucket:
var config = new CouchbaseClientConfiguration();
config.Urls.Add(new Uri(ConfigurationManager.AppSettings["CouchbaseServerUrl"] + "/pools"));
config.Bucket = "authenticated";
config.BucketPassword = "secret";
var cluster = new CouchbaseCluster(config);
using (var stream = new FileStream("Data
CityViews.json", FileMode.Open))