Design docs (views) created via REST API don't work. "Show Results" is grayed out. 404 error in client.
I recently updated to the latest 2.0 beta release of Couchbase Server and now notice that when I upload design docs to Couchbase, they don't work. I get a 404 error when I try to access the view from the client library. If I view them in the web console, I notice that the "show results" button is grayed out. However, if I copy the design doc to dev and edit the view by pressing save without making any changes, the "show results" button is now enabled. If I publish this to production, the view works.
Is this by design? I did not have this issue in the earlier 2.0 releases. The REST API isn't very useful if I still have to use the web console to enable the views--especially when I have dozens of design docs and views.
Problem was caused by carriage returns in view. I develop views on Windows in .js files and store them in Couchbase programmatically. Stripping out \r characters before sending the JSON to CouchbaseCluster.CreateDesignDocument() fixed the problem.
Is this considered a bug? Shouldn't the Couchbase server on Windows handle \r?