Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 46196 invoked from network); 12 May 2009 04:09:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 04:09:11 -0000 Received: (qmail 91257 invoked by uid 500); 12 May 2009 04:09:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 91163 invoked by uid 500); 12 May 2009 04:09:10 -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 91153 invoked by uid 99); 12 May 2009 04:09:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 04:09:09 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 04:09:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89D9A234C004 for ; Mon, 11 May 2009 21:08:45 -0700 (PDT) Message-ID: <787311923.1242101325550.JavaMail.jira@brutus> Date: Mon, 11 May 2009 21:08:45 -0700 (PDT) From: "Sam Bisbee (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-349) Removing a _view can cause the database browser interface to break MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Removing a _view can cause the database browser interface to break ------------------------------------------------------------------ Key: COUCHDB-349 URL: https://issues.apache.org/jira/browse/COUCHDB-349 Project: CouchDB Issue Type: Bug Components: Administration Console Affects Versions: 0.9 Reporter: Sam Bisbee Futon may navigate you to a _view that no longer exists when returning to the database's browser, causing the interface to break. Steps to reproduce: 1. View an existing _view in Futon (ex., http://localhost:5984/_utils/database.html?foo/_design%2FuserInfo%2Fbar) 2. Browse to the design document - I just clicked on the "_design/userInfo" link on the right side of the "View code" box. 3. Edit the design document, removing the _view we were just at (in this case, "bar"). 4. Save the design document. 5. Return to the database's overview. I clicked on the "Overview > foo" link in the top navigation bar. Error message(s): 1. Firebug reports the following... viewCode is undefined http://localhost:5984/_utils/script/futon.browse.js?0.9.0 Line 298 2. Firebug reports the following... document.body is null http://localhost:5984/_utils/script/jquery.js?1.3.1 Line 3085 The cause: When you return to the database's browser, whether from the Futon Overview page or a direct link, Futon attempts to return to the previous view, which we just removed from the design document. Temporary fix: You need to change the URL in the address bar to something valid (ex., specify a _view that's valid). If you try to go back to the Futon Overview page and then click on the database, it will simply redirect you to the invalid view again. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.