You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/07/31 03:50:59 UTC

[GitHub] ermouth opened a new issue #1472: Creating index with "ddoc":"" makes DB read-only

ermouth opened a new issue #1472: Creating index with "ddoc":"" makes DB read-only
URL: https://github.com/apache/couchdb/issues/1472
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   ## Expected Behavior
   CouchDB should prevent creation of Mango index ddoc with the `_design/` _id. 
   
   ## Current Behavior
   POST-ing JSON body with `"ddoc":""` field to `/db/_index` creates a ddoc, which seems non-deletable, effectively breaks replication and makes DB non-writable (both PUT and POST fail with 500).
   
   ## Steps to Reproduce
   1. Open Fauxton
   2. Create a DB
   3. Open Mango query tab and then Mango indexes
   4. Create index with any name and `"ddoc":""` field
   
   ## Context
   I was creating Mango index editor in Couch Photon, and noticed the issue during UI tests.
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used: CouchDB 2.1.2 single node
   * Browser Name and version: Chrome 66
   * Operating System and version (desktop or mobile):  Xenial
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services