couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <>
Subject [GitHub] couchdb-couch-mrview pull request: 1145 local docs handler
Date Tue, 30 Dec 2014 20:54:27 GMT
Github user kxepal commented on a diff in the pull request:
    --- Diff: src/couch_mrview_http.erl ---
    @@ -48,6 +50,22 @@ handle_all_docs_req(#httpd{method='POST'}=Req, Db) ->
     handle_all_docs_req(Req, _Db) ->
         couch_httpd:send_method_not_allowed(Req, "GET,POST,HEAD").
    +handle_local_docs_req(#httpd{method='GET'}=Req, Db) ->
    +    all_docs_req(Req, Db, undefined, <<"_local">>);
    --- End diff --
    Should this handler be for db admins only? Since by simple list of all local documents
the replication checkpoints becomes disclosed and any user may touch each without restrictions.
Currently they are in safe just because it doesn't simply to guess their id. I think until
proper _local docs validate_doc_update handler they shouldn't be disclosed to the world expect
database admins who are directly interested in them.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message