couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to 87e3db0
Date Tue, 22 Sep 2015 13:08:21 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 933ba2e3a -> 87e3db046


Reject database names that cause enametoolong error

COUCHDB-2821


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

Branch: refs/heads/master
Commit: 87e3db046e048d6a0d0986e8301c3fddd49c2a5a
Parents: 933ba2e
Author: Robert Newson <rnewson@apache.org>
Authored: Mon Sep 21 23:40:11 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Sep 22 14:07:32 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/87e3db04/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 81552ca..845a413 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -820,6 +820,9 @@ error_info({error, {illegal_database_name, Name}}) ->
     {400, <<"illegal_database_name">>, Message};
 error_info({_DocID,{illegal_docid,DocID}}) ->
     {400, <<"illegal_docid">>,DocID};
+error_info({error, {database_name_too_long, DbName}}) ->
+    {400, <<"database_name_too_long">>,
+        <<"At least one path segment of `", DbName/binary, "` is too long.">>};
 error_info({missing_stub, Reason}) ->
     {412, <<"missing_stub">>, Reason};
 error_info(request_entity_too_large) ->


Mime
View raw message