You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Nick Fisher (JIRA)" <ji...@apache.org> on 2010/12/13 19:48:02 UTC
[jira] Created: (COUCHDB-985) Update handlers can make documents
with blank _id
Update handlers can make documents with blank _id
-------------------------------------------------
Key: COUCHDB-985
URL: https://issues.apache.org/jira/browse/COUCHDB-985
Project: CouchDB
Issue Type: Bug
Components: Database Core, JavaScript View Server
Affects Versions: 1.0.1
Environment: OS X, built using brew
Reporter: Nick Fisher
Priority: Minor
Make the following update handler:
'''
function(doc, req){
return [{}, 'done\n'];
}
'''
Then do a POST to the handler. You will then have a document with a blank _id.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Commented] (COUCHDB-985) Update handlers can make documents
with blank _id
Posted by "Benjamin Young (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088264#comment-13088264 ]
Benjamin Young commented on COUCHDB-985:
----------------------------------------
This is still a problem in the latest trunk and it removes the ability to DELETE the doc via /{db}/{doc} as {doc} can't == "" as you'd then delete the DB.
> Update handlers can make documents with blank _id
> -------------------------------------------------
>
> Key: COUCHDB-985
> URL: https://issues.apache.org/jira/browse/COUCHDB-985
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core, JavaScript View Server
> Affects Versions: 1.0.1
> Environment: OS X, built using brew
> Reporter: Nick Fisher
> Priority: Minor
>
> Make the following update handler:
> '''
> function(doc, req){
> return [{}, 'done\n'];
> }
> '''
> Then do a POST to the handler. You will then have a document with a blank _id.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira