From user-return-17592-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 22 14:45:48 2011 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 19A748399 for ; Mon, 22 Aug 2011 14:45:48 +0000 (UTC) Received: (qmail 88556 invoked by uid 500); 22 Aug 2011 14:45:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88454 invoked by uid 500); 22 Aug 2011 14:45:45 -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 88440 invoked by uid 99); 22 Aug 2011 14:45:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 14:45:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erdem.agaoglu@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 14:45:38 +0000 Received: by vxh15 with SMTP id 15so6297285vxh.11 for ; Mon, 22 Aug 2011 07:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=KMZIRkFUyTiRS6NxJyTUtzNTQACj1V5Yjz6fK+leDzk=; b=HmuXO2CpFXeUa8YSgV/PSqqXJvaqJr5jUXrqGenk73scTrzse80SXzSlclX516A3Rc 9+3Io6Bk/kEz4Sup0XNWCAIi+kdlufHTCbXqKlrdhPD9kAhjDvQ6kbCxUHn39xdltQyW 6ZOaBvAbvulzu7yHh5hUj6zd+2dDpBy7x4i14= MIME-Version: 1.0 Received: by 10.52.92.103 with SMTP id cl7mr2357707vdb.399.1314024317753; Mon, 22 Aug 2011 07:45:17 -0700 (PDT) Received: by 10.52.114.41 with HTTP; Mon, 22 Aug 2011 07:45:17 -0700 (PDT) Date: Mon, 22 Aug 2011 17:45:17 +0300 Message-ID: Subject: _show fails on special characters in URL From: Erdem Agaoglu To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3071cc46af985b04ab192084 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071cc46af985b04ab192084 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I think i found something interesing in the way show functions are handled. If i add a character with URL escaped value over '%80', it crashes the function handler and request fails. So while a _show like ` http://localhost:5984/example/_design/app/_show/foo/bar` works perfectly, ` http://localhost:5984/example/_design/app/_show/foo/bar?baz=3D%A3` fails wi= th {"error":"os_process_error","reason":"{exit_status,0}"} Characters between %00 and %80 has no effect, but anything between %81 and %FF causes problem. I saw these in the debug log. http://pastebin.com/C3V2h1kk Another interesting point is this only occurs with the escaped versions of the characters. So if i request ` http://localhost:5984/example/_design/app/_show/foo/bar?baz=3D=C2=A3` inste= ad of the previous one, it works. I use Arch packaged couchdb, it reports version as 1.2.0a-1142703, and i wa= s able to reproduce it on iriscouch. --=20 erdem agaoglu --20cf3071cc46af985b04ab192084--