You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Eric Avdey (JIRA)" <ji...@apache.org> on 2016/08/31 14:53:20 UTC
[jira] [Commented] (COUCHDB-3114) Couch allows to create doc with
id "_design/"
[ https://issues.apache.org/jira/browse/COUCHDB-3114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15452445#comment-15452445 ]
Eric Avdey commented on COUCHDB-3114:
-------------------------------------
In general we no allowing creation of docs starting with underscore, but it's possible to create doc with id "_design/"
{code}
$ curl http://127.0.0.1:15984
{"couchdb":"Welcome","version":"1df597f","vendor":{"name":"The Apache Software Foundation"}}
$ curl -u root:GqBHLKRm -XPUT http://127.0.0.1:15984/koi
{"ok":true}
$ curl -u root:GqBHLKRm -XPUT http://127.0.0.1:15984/koi/_design%2f -d'{"a": 1}'
{"ok":true,"id":"_design/","rev":"1-23202479633c2b380f79507a776743d5"}
$ curl -u root:GqBHLKRm http://127.0.0.1:15984/koi/_all_docs
{"total_rows":1,"offset":0,"rows":[
{"id":"_design/","key":"_design/","value":{"rev":"1-23202479633c2b380f79507a776743d5"}}
]}
{code}
> Couch allows to create doc with id "_design/"
> ---------------------------------------------
>
> Key: COUCHDB-3114
> URL: https://issues.apache.org/jira/browse/COUCHDB-3114
> Project: CouchDB
> Issue Type: Bug
> Reporter: Eric Avdey
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)