[ 
https://issues.apache.org/jira/browse/COUCHDB-2424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Shorin closed COUCHDB-2424.
-------------------------------------
    Resolution: Duplicate

Sorry, we already have the one about this case. And it's annoing, yes ):

> Shard maps for reserved database names cannot be updated
> --------------------------------------------------------
>
>                 Key: COUCHDB-2424
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2424
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Database Core
>            Reporter: Mike Wallace
>
> Attempts to update the shard maps for database names which are prefixed with 
> an underscore (e.g. _replicator and _users) will fail with a bad_request 
> error.
> This can be reproduced by starting a local dev cluster with {{dev/run}}, 
> creating a _replicator DB, retrieving its shard map and attempting to upload 
> a new revision:
> {code}
> $ curl -sX PUT http://localhost:15984/_replicator
> {"ok":true}
> $ curl -sX GET http://localhost:15986/dbs/_replicator > 
> _replicator.shardmap.json
> $ curl -sX POST http://localhost:15986/dbs -d @_replicator.shardmap.json -H 
> 'Content-Type: application/json'
> {"error":"bad_request","reason":"Only reserved document ids may start with 
> underscore."}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to