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 81CC37FDA for ; Thu, 3 Nov 2011 17:55:56 +0000 (UTC) Received: (qmail 17998 invoked by uid 500); 3 Nov 2011 17:55:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 17954 invoked by uid 500); 3 Nov 2011 17:55:55 -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 17946 invoked by uid 99); 3 Nov 2011 17:55:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 17:55:55 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Thu, 03 Nov 2011 17:55:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 52A9833003F for ; Thu, 3 Nov 2011 17:55:32 +0000 (UTC) Date: Thu, 3 Nov 2011 17:55:32 +0000 (UTC) From: "The Dod (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1674333728.56616.1320342932339.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1385309347.12830.1318573091841.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1307) Error popup when viewing futon on a vhost 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-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143385#comment-13143385 ] The Dod commented on COUCHDB-1307: ---------------------------------- I'd like to address the second issue you've raised first, because it's much more critical: You can't disable a user's ability to change own profile, and the current "de facto standard" (i.e. what you get from "couchapp generate" and therefore - 99% of the couchapverse) is that "edit profile" is a link to /_utils/document.html?_users/org.couchdb.user:myusername Even if in the future a non-futon solution for "edit profile" emerges, we'd still have to leave a clue to users of legacy couchapps there (it's acceptable if they get a warning or two along the way, but we'd still need a "we've moved here" link somewhere). Now for the issue of "treating *any* error case as a possible vhost": we're taking about a *specific* case. The function that might "fail" here is discovering the server's version. If the error is a result of something more serious than "we're on a vhost", then other alerts would (or at least should) trigger. All we need is to change the *comment* in the code "either it's a vhost, or things are so bad user has already figured out there's a problem and doesn't need yet another popup right now" :) A more elegant way to solve this would be to use a vhost-agnostic /_version or something instead of / for fetching the version, but my patch works on localhost. The fact that I don't have it at - say - iriscouch (because it's not "official") is frightening my users, so pretty please - either do it properly (/_version) or accept this simple and harmless patch so that they can relax. > Error popup when viewing futon on a vhost > ----------------------------------------- > > Key: COUCHDB-1307 > URL: https://issues.apache.org/jira/browse/COUCHDB-1307 > Project: CouchDB > Issue Type: Improvement > Components: Futon > Reporter: The Dod > Priority: Minor > Labels: javascript, patch > Attachments: futon.js.diff > > Original Estimate: 5m > Remaining Estimate: 5m > > When accessing futon from a vhost (where "/" doesn't return a json description of the server), you unnecessarily get an "error" popup (containing the entire html of the "/" page). > Since many CouchApps link into futon as a way for end users to edit their profiles, they get the impression that the app is "broken". -- 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