Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 25149 invoked from network); 25 Mar 2011 17:45:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 17:45:28 -0000 Received: (qmail 43280 invoked by uid 500); 25 Mar 2011 17:45:28 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 43240 invoked by uid 500); 25 Mar 2011 17:45:28 -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 43232 invoked by uid 99); 25 Mar 2011 17:45:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 17:45:28 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 17:45:20 +0000 Received: from dahlia.local (p5795AFB5.dip.t-dialin.net [87.149.175.181]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 182443C24D; Fri, 25 Mar 2011 18:44:59 +0100 (CET) Subject: Re: 160- failure Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Jan Lehnardt In-Reply-To: Date: Fri, 25 Mar 2011 18:44:58 +0100 Cc: Benoit Chesneau Content-Transfer-Encoding: quoted-printable Message-Id: References: <82D29B2A-7F02-45E2-B1A6-99E8FBEC4BEE@apache.org> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1084) On 25 Mar 2011, at 18:30, Randall Leeds wrote: > On Fri, Mar 25, 2011 at 06:13, Benoit Chesneau = wrote: >> On Fri, Mar 25, 2011 at 1:22 PM, Jan Lehnardt wrote: >>> Good find Benoit! >>>=20 >>> On 25 Mar 2011, at 11:01, Benoit Chesneau wrote: >>>=20 >>>> Frome time to time the 160- etap test is failing (depending on the >>>> platform or whatever). While chasing this issue I noticed that >>>> returning values from couch_config:get inserted via = couch_config:set >>>> aren't in the right order: >>>=20 >>> When designing the config system way back when I went with the = assumption >>> that order of sections or values in sections is not specified. I.e. = CouchDB >>> is behaving as "specified" (but I don't think I ever wrote that = down). >>=20 >> sound normal. Thinking more about it I can't remember an example of >> ini where order counts. >>=20 >>>=20 >>> It sounds like the wildcard vhosts rely on a specific ordering, is = that >>> correct? In that case, I don't have any problems guaranteeing the = order >>> of values within sections (but I wouldn't go so far as to define an = order >>> for sections themselves). Sections that are spread over multiple = config >>> files should take the order of when the subsequent files are parsed. = I.e. >>> Section X in file A and B orders its entries as all from file A and = then >>> from file B, if they are parsed in order. >>=20 >>>=20 >>> I'm fairly certain that the ini parser and writer also do not = preserve >>> ordering, which we'd have to look after. >>=20 >> Yes current vhosts rules like the rewriter are relying on the order. >> It sounds really complicated to have this working with multiple ini >> almost impossible, except if they are prefixed I think >>=20 >=20 > Just had the same thought. > 001-local.ini ? > Might be a smart thing to do. Would there be any objections? Yeah, it looks ugly and it doesn't help solving the problem :D This is about couch_config not preserving order, not about the order of = insertions into couch_config :) Cheers Jan --=20 >=20 >>>=20 >>> Alternatively, can we make wildcard-vhosts not rely on the total = ordering >>> of config values? >>=20 >> It's easier to do. What doesn't work actually is the variable >> replacement. I propose to remove these replacements and just use host >> wildcard, simple path and host name. No wildcards in path. If we are >> OK with that, I can attach the patch to jira during the we. >>=20 >>>=20 >>> Cheers >>> Jan >>> -- >>> PS: all the example urls in the previous mails in this mark this one = as >>> spam for me, so I removed the previous trace. >>>=20 >>=20