Details
Description
I used curl to create a design doc but forgot to specify content type json header in request. If I query couchdb _all_docs, I see the doc is there, but I cannot delete the design doc from the UI - nor can I see the views:
Minor issue, but if it can't be deleted I suppose it shouldn't be created.
REQUEST =>
curl http://10.1.2.40:8091/couchBase/default/_design/dev_ddoc1 -X PUT -d@views.json
inside of views.json I have:
{"_id":"_design/dev_ddoc1","views":{"view1a":{"map":"function (doc)
"}}}
LOG =>
Client-side error-report for user "Administrator" on node 'ns_1@10.1.2.40':
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
Browser client XHR failure encountered. (age: 1889) Diagnostic info:
s: {"url":"/couchBase/default/_design/dev_ddoc1?rev=undefined","isLocal":false,"global":true,"type":"DELETE","contentType":"application/json","processData":true,"async":true,"accepts":
,"contents":{"xml":{},"html":{},"json":{},"script":{}},"responseFields":
{"xml":"responseXML","text":"responseText"},"converters":
{"text html":true},"jsonp":"callback","timeout":30000,"cache":false,"dataType":"json","data":"{}","dataTypes":["text","json"],"crossDomain":false,"hasContent":true}
xhrStatus: error,
xhrReadyState: 4,
errMsg: Bad Request,
statusCode: 400,
responseText:
full diag attached