From user-return-13844-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sat Nov 20 10:39:52 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 17473 invoked from network); 20 Nov 2010 10:39:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 10:39:52 -0000 Received: (qmail 62206 invoked by uid 500); 20 Nov 2010 10:40:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62049 invoked by uid 500); 20 Nov 2010 10:40:22 -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 62040 invoked by uid 99); 20 Nov 2010 10:40:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 10:40:21 +0000 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of haaiee@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 10:40:14 +0000 Received: by qyk29 with SMTP id 29so492980qyk.11 for ; Sat, 20 Nov 2010 02:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=AK5LYjLMRIi5TWEq98udSRy821Xnjiew+fp+yr6DKFA=; b=B2OWlp0HdoXzOLCCzVuSIVihdyMtMiink8kwue3dj5YE1rr74au9znKUq3ErvouA5l VMUJw46/KJpF+taHMO8gsH3B2l7MDJHt37XLYQDDwwFNHj/U/P2t5vRHA3XY05XTT3Ng 6o6L/ZJUciB8yCW7QDqGiXQyyjFvIEc8f/qok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=EumEHczLY+IbS6oai9Ez7710kQUpnSiVYwXMJtAXxkcA7Syljj+NXleZ4hAuhOEFk0 ijPJYBvU5k1WSt+XKxhaRqM9bD6jb46xO7MEqs0ObLLL/jeo5NFsUthE9sQGTa4xn659 mRukaZAsCi/uOD/V7OoYqVKx6lpyI1O58gm2Y= Received: by 10.229.215.70 with SMTP id hd6mr2873697qcb.48.1290249593072; Sat, 20 Nov 2010 02:39:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.35.201 with HTTP; Sat, 20 Nov 2010 02:39:32 -0800 (PST) From: Hendrik Jan van Meerveld Date: Sat, 20 Nov 2010 11:39:32 +0100 Message-ID: Subject: rewrite not working (am I a noob?) To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016362844b2aaaae1049579a4d2 X-Virus-Checked: Checked by ClamAV on apache.org --0016362844b2aaaae1049579a4d2 Content-Type: text/plain; charset=ISO-8859-1 Hi All, I'm trying to get url-rewrite to work in couchdb. My webpage is located at: http://localhost:5984/test/_design/main/_show/bones/en-bones-contact I edited the "rewrites" field in the _design/main document (using futon) as follows: [ { "from": "/xx/*", "to": "/_show/*" }, { "from": "/_show/xx/*", "to": "/_show/bones/*" } ] After saving this rewrite rule I was expecting that when I go to http://localhost:5984/test/_design/main/*xx*/bones/en-bones-contact or to http://localhost:5984/test/_design/main/_show/*xx*/en-bones-contact or to http://localhost:5984/test/_design/main/*xx/xx*/en-bones-contact this would show me the same page as the original. But is doesn't. I get errors like "Document is missing attachment" and "missing function" Am I doing anything wrong? Should the field not be named "rewrites" but something like "_rewrite"? Kind regards, Hendrik Jan --0016362844b2aaaae1049579a4d2--