From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7452 invoked from network); 27 Mar 2003 18:19:26 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 27 Mar 2003 18:19:26 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ybvc-0008LS-09 for listarch-gnats-devel@sources.redhat.com; Thu, 27 Mar 2003 13:16:40 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ybvK-00088F-00 for help-gnats@gnu.org; Thu, 27 Mar 2003 13:16:22 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ybvC-0007xi-00 for help-gnats@gnu.org; Thu, 27 Mar 2003 13:16:16 -0500 Received: from natint.juniper.net ([207.17.136.129] helo=merlot.juniper.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18ybv9-0007pN-00 for help-gnats@gnu.org; Thu, 27 Mar 2003 13:16:11 -0500 Received: from juniper.net (ssh.juniper.net [207.17.136.39]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id h2RIG7S89878; Thu, 27 Mar 2003 10:16:07 -0800 (PST) (envelope-from hatzis@juniper.net) Message-ID: <3E833FD7.9050902@juniper.net> Date: Thu, 27 Mar 2003 18:19:00 -0000 From: Mel Hatzis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dirk Schenkewitz References: <3E7EE1BF.C80C1981@interface-ag.com> <3E8304E0.D13191A4@interface-ag.com> In-Reply-To: <3E8304E0.D13191A4@interface-ag.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by merlot.juniper.net id h2RIG7S89878 cc: help-gnats Subject: Re: too many 'changed' entries X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: 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: 2003-q1/txt/msg00099.txt.bz2 On 03/27/2003 06:04 AM, Dirk Schenkewitz submitted: >Dirk Schenkewitz schrieb: >=20=20 > >>Hi All, >> >>Can someone give me a hint to get rid of this: >> >>Every time a PR is edited (via Gnatsweb) it happens that stuff is noted as >>'changed' in the Audit-Trail, although the only "change" was the formatti= ng, >>and even there the user did not change anything - all of this happens aut= o- >>matically. >> >>As an example, here is something I found in one audit-trail. >>/ >>| Description-Changed-From-To: In einer Mehrfachauswahl wird auf einen St= ring mit einem '#D ' abgefragt. Entspricht der Wert, >>| verl=E4uft zun=E4chst alles gut. Entspricht der Wert nicht und muss er = nur =FCberlesen werden, kommt Fehler: Variable Konstante >>| erwartet. >>| ->In einer Mehrfachauswahl wird auf einen String mit einem '#D >>| ' abgefragt. Entspricht der Wert, verl=E4uft zun=E4chst alles >>| gut. Entspricht der Wert nicht und muss er nur =FCberlesen >>| werden, kommt Fehler: Variable Konstante erwartet. >>\ >> >>We're using Gnatsweb v3.99.3, Gnats v4.0-beta1 (taken from the GnatsWeb >>display) - is this a known bug which can be removed by updating, perhaps ? >>Or did I make a configuration mistake ? >>Or is it the fault of my favourite browser (Opera 7.0), running on Win-NT= 4.0 ? >>=20=20=20=20 >> > >It can't be the browser, other people here have the same problem >and they use IE or Netscape (4.7x to 7.x) or Mozilla. > >Has nobody else observed this ? >(Please, people, give me a hint, even if it is something obvious -=20 >right now i'm just out of ideas.) > I noticed this too. In my case, I setup a field as 'required' and it wasn't working via gnatsweb, because gnatsweb was inserting a newline (thereby making the field look like it had a value). I fixed it by changing the 'fix_multiline_val' sub, as follows: sub fix_multiline_val { my $val =3D shift; $val =3D~ s/\r\n?/\n/g; $val .=3D "\n" unless $val =3D~ /\n$/; if ($val =3D~ /^\s*$/) { # don't allow whitespace values to circumvent 'required' fields $val =3D ""; } $val; } This basically prevents whitespace only values from being entered as the (multiline) field value which I consider to be a good fix. This should help you in the case where a newly created PR is edited for the first time - since this is when gnatsweb will add the newline, thereby changing the field and adding a change log to the audit trail. Hope this helps. -- Mel Hatzis > >Can/should I ask somewhere else ? But then, where (or whom) ? > >Slowly getting desperate... > dirk >=20=20 > _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats