From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15518 invoked from network); 17 Feb 2005 21:31:04 -0000 Received: from unknown (HELO lists.gnu.org) (199.232.76.165) by sourceware.org with SMTP; 17 Feb 2005 21:31:04 -0000 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1tSF-0008BN-0c for listarch-gnats-devel@sources.redhat.com; Thu, 17 Feb 2005 16:44:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1tBE-0002Xu-ND for help-gnats@gnu.org; Thu, 17 Feb 2005 16:27:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1tB7-0002TE-FM for help-gnats@gnu.org; Thu, 17 Feb 2005 16:27:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1tB2-0002Lp-Hv for help-gnats@gnu.org; Thu, 17 Feb 2005 16:27:12 -0500 Received: from [207.17.137.64] (helo=colo-dns-ext2.juniper.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D1siQ-00031d-KF for help-gnats@gnu.org; Thu, 17 Feb 2005 15:57:38 -0500 Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext2.juniper.net (8.12.3/8.12.3) with ESMTP id j1HKvYBm065941; Thu, 17 Feb 2005 12:57:34 -0800 (PST) (envelope-from hatzis@juniper.net) Received: from [10.64.209.22] (ssh2.juniper.net [207.17.136.44]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id j1HKvTe84365; Thu, 17 Feb 2005 12:57:34 -0800 (PST) (envelope-from hatzis@juniper.net) Message-ID: <4215053C.1050302@juniper.net> Date: Thu, 17 Feb 2005 21:31:00 -0000 From: Mel Hatzis User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Mueller References: <42036345.8070600@multamedio.de> In-Reply-To: <42036345.8070600@multamedio.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 17 Feb 2005 16:44:48 -0500 Cc: help-gnats@gnu.org Subject: Re: Conditional "on-change" does not work for "require-change-reason" X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2005-q1/txt/msg00030.txt.bz2 Alexander Mueller wrote: > Hi, > > I'm using gnats 4.01 and have encountered a strange problem > concerning the "on-change" section. Using a query expression > to make the execution of the actions contained in an "on-change" > section conditional works just fine, except for the "require- > change-reason" action. No matter whether the query expression > is true or false the "require-change-reason" action is always > executed, while for other actions contained in the same "on- > change" section the result of the evaluation of the query > expression is correctly taken into account. > > Here's an example: > > on-change "State[type]!=\"closed\"" { > > require-change-reason <---- always executed > > set-field "Foo" { <---- executed if query > "Bar" expression is true > } > } > > I've already skimmed the relevant parts of the sources > but couldn't find any particular reason for my problem. > Any advice? Please be benignant because I'm new to > gnats ;-) Sorry to be the bearer of bad news, but you've uncovered a GNATS bug. The condition is ignored for the require-change-reason flag, resulting in an error if you haven't supplied a change reason when the field changes, irrespective of the on-change condition. The good news is that it doesn't appear to be too difficult to remedy. Hopefully, we'll have a fix for this in the next release. In the meantime, perhaps someone can file this as a bug so it doesn't get dropped. -- Mel Hatzis > > Cheers, > > Alexander Mueller > > > > _______________________________________________ > Help-gnats mailing list > Help-gnats@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnats _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats