Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 853299308 for ; Wed, 7 Mar 2012 06:46:33 +0000 (UTC) Received: (qmail 3022 invoked by uid 500); 7 Mar 2012 06:46:32 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 2473 invoked by uid 500); 7 Mar 2012 06:46:31 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 2244 invoked by uid 99); 7 Mar 2012 06:46:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 06:46:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 06:46:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 814A2C5E6 for ; Wed, 7 Mar 2012 06:46:08 +0000 (UTC) Date: Wed, 7 Mar 2012 06:46:08 +0000 (UTC) From: "Jason Smith (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1762041529.31739.1331102768531.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <643305025.31464.1331097840017.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1431) DDoc name with underscore as first char produce invalid filters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224038#comment-13224038 ] Jason Smith commented on COUCHDB-1431: -------------------------------------- I guess it makes sense that _design/_whatever is disallowed; but if CouchDB did that, it would entail whitelisting _design/_auth in the _users db, and _design/_replicator in /_replicator. > DDoc name with underscore as first char produce invalid filters > --------------------------------------------------------------- > > Key: COUCHDB-1431 > URL: https://issues.apache.org/jira/browse/COUCHDB-1431 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 1.2, 1.3 > Environment: Apache CouchDB 1.3.0a-5cece68-git > Apache CouchDB 1.2.0a-0d8ddc8-git > Reporter: Alexander Shorin > > CouchDB allows to create design document with id as `_design/_private`, but there is no way to use filters from it: > $ curl -v http://localhost:5984/test/_changes?filter=_private/confidential > * About to connect() to localhost port 5984 (#0) > * Trying 127.0.0.1... > * connected > * Connected to localhost (127.0.0.1) port 5984 (#0) > > GET /test/_changes?filter=_private/confidential HTTP/1.1 > > User-Agent: curl/7.24.0 (i686-pc-linux-gnu) libcurl/7.24.0 GnuTLS/2.10.5 zlib/1.2.5 > > Host: localhost:5984 > > Accept: */* > > > < HTTP/1.1 400 Bad Request > < Server: CouchDB/1.3.0a-5cece68-git (Erlang OTP/R14B04) > < Date: Wed, 07 Mar 2012 04:51:06 GMT > < Content-Type: text/plain; charset=utf-8 > < Content-Length: 63 > < Cache-Control: must-revalidate > < > {"error":"bad_request","reason":"unknown builtin filter name"} > * Connection #0 to host localhost left intact > * Closing connection #0 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira