Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 28442 invoked from network); 22 Apr 2010 02:38:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 02:38:12 -0000 Received: (qmail 31037 invoked by uid 500); 22 Apr 2010 02:38:12 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 30952 invoked by uid 500); 22 Apr 2010 02:38:12 -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 30942 invoked by uid 99); 22 Apr 2010 02:38:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 02:38:11 +0000 X-ASF-Spam-Status: No, hits=-1328.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 02:38:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3M2boZc009584 for ; Thu, 22 Apr 2010 02:37:50 GMT Message-ID: <28438717.129841271903870143.JavaMail.jira@thor> Date: Wed, 21 Apr 2010 22:37:50 -0400 (EDT) From: "Paul Bonser (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-748) Keys and document IDs are improperly escaped in document list In-Reply-To: <27740752.129561271901949693.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Bonser updated COUCHDB-748: -------------------------------- Description: In the Futon document list, as generated by $.futon.CouchDatabasePage.updateDocumentListing, "<", ">", and "&" are double-encoded for row keys and left unencoded for document IDs. Also, Firefox (maybe other browsers) seems to get confused when there are single-quotes inside a URL, so it seems they need to be escaped, too. The double-encoding is caused by the fact that the jQuery text() function encodes those characters when they were already encoded by $.futon.formatJson, and the lack of encoding is caused by simply using the raw id. was: In the Futon document list, as generated by $.futon.CouchDatabasePage.updateDocumentListing, "<", ">", and "&" are double-encoded for row keys and left unencoded for document IDs. The double-encoding is caused by the fact that the jQuery text() function encodes those characters when they were already encoded by $.futon.formatJson, and the lack of encoding is caused by simply using the raw id. > Keys and document IDs are improperly escaped in document list > ------------------------------------------------------------- > > Key: COUCHDB-748 > URL: https://issues.apache.org/jira/browse/COUCHDB-748 > Project: CouchDB > Issue Type: Bug > Components: Futon > Reporter: Paul Bonser > Priority: Minor > Attachments: escape_id.patch, escape_id.patch > > > In the Futon document list, as generated by $.futon.CouchDatabasePage.updateDocumentListing, "<", ">", and "&" are double-encoded for row keys and left unencoded for document IDs. > Also, Firefox (maybe other browsers) seems to get confused when there are single-quotes inside a URL, so it seems they need to be escaped, too. > The double-encoding is caused by the fact that the jQuery text() function encodes those characters when they were already encoded by $.futon.formatJson, and the lack of encoding is caused by simply using the raw id. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.