Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22D3890E0 for ; Thu, 21 Jun 2012 20:56:16 +0000 (UTC) Received: (qmail 7246 invoked by uid 500); 21 Jun 2012 20:56:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7204 invoked by uid 500); 21 Jun 2012 20:56:14 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 7178 invoked by uid 99); 21 Jun 2012 20:56:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 20:56:13 +0000 X-ASF-Spam-Status: No, hits=2.6 required=5.0 tests=FROM_LOCAL_NOVOWEL,FSL_RCVD_USER,HK_RANDOM_ENVFROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cgsmcmlxxv@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qc0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 20:56:08 +0000 Received: by qcmv28 with SMTP id v28so638945qcm.11 for ; Thu, 21 Jun 2012 13:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5Cv+I8KWzF+IbhOkiF68lF5Lc1VMPUhwwoCZyQZ6mB8=; b=MdKWbZTBOx3w2+4c5Q4LJcVWMRbSCG+GtzWWABTiaHEuHBx6B2GjcwCM56XEFRtgdo +RxB7tAlHCnvb7adjacSHz8S+h+86x+dh8b3voRfY1UdrvcVPm/bSdMDNx2vFqRkW/K/ D5t+YZSoHW4jNRR1WvHgMJdG1kU8xQmz69HpfNzy6vUsnPalmJIMlWZtSDV724QkBm5W U5hscOJN3ywtH/5iww5CxVr2cM6mxm/fDYiUvDHFt8nQx8ZmiOzy8lzboQtW7adZvGCe 4fIZyB7dD5xas4qRnot+SC3LIEkRadswd/r8SG0dDVl5/eNZrWK3O0YtV1ymxkGp3bA5 5XSg== MIME-Version: 1.0 Received: by 10.224.32.205 with SMTP id e13mr1848852qad.69.1340312147903; Thu, 21 Jun 2012 13:55:47 -0700 (PDT) Received: by 10.229.231.205 with HTTP; Thu, 21 Jun 2012 13:55:47 -0700 (PDT) In-Reply-To: <6C8DFD87BDB54F2BA24E9CE5CE530AF3@martynus.net> References: <542BBC36499740A2BB2F4E226BD0556C@martynus.net> <6C8DFD87BDB54F2BA24E9CE5CE530AF3@martynus.net> Date: Thu, 21 Jun 2012 22:55:47 +0200 Message-ID: Subject: Re: Problem with / in _design doc _id & filters? From: CGS To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3074b13476c67704c301bd76 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074b13476c67704c301bd76 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Try this: curl -X GET http://127.0.0.1:5984/test/_changes -d '{"filter":"_design%2fa%2fb/test"}' -H 'Content-Type: application/json' CGS On Thu, Jun 21, 2012 at 7:43 PM, Gregor Martynus wrote= : > no luck =85 does it work for you? > > -- > Gregor Martynus > > > On Thursday, 21. June 2012 at 19:02, CGS wrote: > > > Try encoding all the slashes. > > > > CGS > > > > > > > > > > On Thu, Jun 21, 2012 at 4:29 PM, Gregor Martynus gregor@martynus.net)>wrote: > > > > > When I create a _design doc with a / in it, I'm not able to refer to > its > > > filter in the _changes feed. > > > > > > Example _design doc: > > > { > > > "_id": "_design/a/b", > > > "filters": { > > > "test": "function(doc) { return true; };" > > > } > > > } > > > > > > > > > _changes request: > > > GET http://localhost:5984/test/_changes?filter=3Da%2fb/test > > > > > > > > > returns a 400 with the body: > > > { > > > error: "bad_request", > > > reason: "filter parameter must be of the form `designname/filtername`= " > > > } > > > > > > > > > > > > Is this a bug? Or am I doing something wrong? > > > I test it without the / in the _design doc, it worked without a probl= em > > > > > > -- > > > Gregor Martynus > > > > > > > > > > > > --20cf3074b13476c67704c301bd76--