You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/09/22 21:20:28 UTC

chttpd commit: updated refs/heads/master to 8d96bb6

Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 87e3db046 -> 8d96bb675


Use illegal_docid error for really bad document ids


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

Branch: refs/heads/master
Commit: 8d96bb6757bedbbe91acbfa0a6ced1c4a74cb8ab
Parents: 87e3db0
Author: Alexander Shorin <kx...@apache.org>
Authored: Thu Sep 17 23:09:45 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Tue Sep 22 22:19:24 2015 +0300

----------------------------------------------------------------------
 src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/8d96bb67/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 845a413..8613578 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -818,6 +818,8 @@ error_info({error, {illegal_database_name, Name}}) ->
         "digits (0-9), and any of the characters _, $, (, ), +, -, and / ",
         "are allowed. Must begin with a letter.">>,
     {400, <<"illegal_database_name">>, Message};
+error_info({illegal_docid, Reason}) ->
+    {400, <<"illegal_docid">>, Reason};
 error_info({_DocID,{illegal_docid,DocID}}) ->
     {400, <<"illegal_docid">>,DocID};
 error_info({error, {database_name_too_long, DbName}}) ->