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 EA9F010885 for ; Mon, 18 Nov 2013 18:15:22 +0000 (UTC) Received: (qmail 12993 invoked by uid 500); 18 Nov 2013 18:15:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 12915 invoked by uid 500); 18 Nov 2013 18:15:22 -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 12800 invoked by uid 99); 18 Nov 2013 18:15:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Nov 2013 18:15:21 +0000 Date: Mon, 18 Nov 2013 18:15:21 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1936) First inifile section ignored if at first line of file 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-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825556#comment-13825556 ] Robert Newson commented on COUCHDB-1936: ---------------------------------------- If you could do './utils/run -i' and then couch_config:parse_ini_file("foo.ini") where foo.ini is your bad ini file? > First inifile section ignored if at first line of file > ------------------------------------------------------ > > Key: COUCHDB-1936 > URL: https://issues.apache.org/jira/browse/COUCHDB-1936 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Reporter: Will Perry > > If local.ini does not have a blank/comment as it's first line, then config settings in the first section are ignored. > Imagine: > [couchdb]\n > uuid=fafaad266ad7c9ea492a2f857a699738\n > If this ini file is used, and couchdb is booted, a new UUID config setting will be created, like: > [couchdb]\n > uuid=fafaad266ad7c9ea492a2f857a699738\n > \n > [couchdb]\n > uuid=123412341234123412341234123412\n > However, if the first line in the file is **not** a section start (i.e., a comment or a new line) then this issue does not occur: > ; this is a comment\n > [couchdb]\n > uuid=fafaad266ad7c9ea492a2f857a699738\n -- This message was sent by Atlassian JIRA (v6.1#6144)