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 3853AD792 for ; Fri, 4 Jan 2013 16:30:14 +0000 (UTC) Received: (qmail 62241 invoked by uid 500); 4 Jan 2013 16:30:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 62203 invoked by uid 500); 4 Jan 2013 16:30:13 -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 62147 invoked by uid 99); 4 Jan 2013 16:30:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 16:30:13 +0000 Date: Fri, 4 Jan 2013 16:30:13 +0000 (UTC) From: "Marcello Barnaba (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1636) Views code in design documents missing the "language" property cannot be updated via futon MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1636?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcello Barnaba updated COUCHDB-1636: -------------------------------------- Attachment: couchdb-futon-default-view-language.patch Patch to CouchDB 1.2.0 release futon to implement the default language beha= vior when updating view code in design documents. =20 > Views code in design documents missing the "language" property cannot be = updated via futon > -------------------------------------------------------------------------= ----------------- > > Key: COUCHDB-1636 > URL: https://issues.apache.org/jira/browse/COUCHDB-1636 > Project: CouchDB > Issue Type: Bug > Components: Futon > Affects Versions: 1.2 > Reporter: Marcello Barnaba > Priority: Trivial > Labels: javascript, newbie, patch > Attachments: couchdb-futon-default-view-language.patch > > > As reported by Lle=C3=AFr Borras (http://tu.llegeix.me/), it is not possi= ble to update a materialized view code through the Futon if its design docu= ment does not contain the "language" property. > On such a design document, when clicking "Save" in the the "database.html= ?db/_design/doc/_view/name" page, the following error occurs: > Cannot save view because the design document language is "undefined", not= "javascript". > But, in the server code[1], "javascript" is the default value for the lan= guage property if it is undefined: so, I think that the correct solution is= to make the futon implement the same behavior. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira