From dev-return-20909-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Wed Feb 22 05:09:19 2012 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 384349734 for ; Wed, 22 Feb 2012 05:09:19 +0000 (UTC) Received: (qmail 56979 invoked by uid 500); 22 Feb 2012 05:09:18 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 56908 invoked by uid 500); 22 Feb 2012 05:09:16 -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 56876 invoked by uid 99); 22 Feb 2012 05:09:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 05:09:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 05:09:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B8A743333A3 for ; Wed, 22 Feb 2012 05:08:48 +0000 (UTC) Date: Wed, 22 Feb 2012 05:08:48 +0000 (UTC) From: "Sam Bisbee (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1325868883.2813.1329887328757.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (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 [ https://issues.apache.org/jira/browse/COUCHDB-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-349. ------------------------------ > 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: Futon > Affects Versions: 0.9 > Reporter: Sam Bisbee > Assignee: Paul Joseph Davis > Fix For: 0.9.1 > > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira