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 D0B1C10609 for ; Thu, 12 Dec 2013 14:18:13 +0000 (UTC) Received: (qmail 59897 invoked by uid 500); 12 Dec 2013 14:18:11 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59489 invoked by uid 500); 12 Dec 2013 14:18:09 -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 59451 invoked by uid 99); 12 Dec 2013 14:18:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 14:18:08 +0000 Date: Thu, 12 Dec 2013 14:18:08 +0000 (UTC) From: "Andrew Spode Miller (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (COUCHDB-668) Futon storage is broken for localhost and other "short" domain names 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-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Spode Miller updated COUCHDB-668: ---------------------------------------- Comment: was deleted (was: It would be nice to have the cookie domain as an OPTION in local.ini. That way, you can have a cookie that works across subdomains by using a wildcard. In the diff above, looking at the code, simply having: "; domain=." + location.hostname + "; expires=" + date.toGMTString(); Would allow the cookie across all subdomains. Notice the extra dot after the =. This functionality should be turned off by default, but could be a setting in local.ini.) > Futon storage is broken for localhost and other "short" domain names > -------------------------------------------------------------------- > > Key: COUCHDB-668 > URL: https://issues.apache.org/jira/browse/COUCHDB-668 > Project: CouchDB > Issue Type: Bug > Components: Futon > Affects Versions: 0.11 > Environment: Linux (Ubuntu 9.10), Chromium/Firefox/Opera > Reporter: Matt Goodall > Assignee: Christopher Lenz > Fix For: 0.11 > > Attachments: futon-cookie-domain.diff > > > Futon's Storage does not save cookies when accessing a Futon on localhost. > Storage's cookie handler now includes the domain name in the cookie args. That doesn't work for localhost, and I can't think of a reason why Futon would ever need to explicitly set the domain anyway. > Removing the domain arg from the cookie fixes the problem on all tested browsers. I haven't been able to test on IE to see if it still works there. > Patch attached. -- This message was sent by Atlassian JIRA (v6.1.4#6159)