You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2016/06/24 16:22:57 UTC

[4/4] fabric commit: updated refs/heads/3039-docid-nulls-in-all-docs-post to aa17ddf

Emit error row for a null doc id in POSTs to _all_docs

This is compatible behavior with CouchDB 1.x

Jira: COUCHDB-3039
BugzID: 68486


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/aa17ddf3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/aa17ddf3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/aa17ddf3

Branch: refs/heads/3039-docid-nulls-in-all-docs-post
Commit: aa17ddf3c149a7ac5316e5c821d0d704ac857960
Parents: da85db2
Author: Nick Vatamaniuc <va...@gmail.com>
Authored: Fri Jun 17 14:04:39 2016 -0400
Committer: Nick Vatamaniuc <va...@gmail.com>
Committed: Fri Jun 24 12:18:24 2016 -0400

----------------------------------------------------------------------
 src/fabric.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/aa17ddf3/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index ddbcb94..0c7cfa2 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -466,10 +466,8 @@ name(Thing) ->
 
 docid(DocId) when is_list(DocId) ->
     list_to_binary(DocId);
-docid(DocId) when is_binary(DocId) ->
-    DocId;
 docid(DocId) ->
-    erlang:error({illegal_docid, DocId}).
+    DocId.
 
 docs(Docs) when is_list(Docs) ->
     [doc(D) || D <- Docs];