From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30083 invoked from network); 28 Mar 2003 16:57:02 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 28 Mar 2003 16:57:02 -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 18yx0V-0002PZ-04 for listarch-gnats-devel@sources.redhat.com; Fri, 28 Mar 2003 11:47:07 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ywzU-00020C-00 for help-gnats@gnu.org; Fri, 28 Mar 2003 11:46:04 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ywyT-0001bI-00 for help-gnats@gnu.org; Fri, 28 Mar 2003 11:45:02 -0500 Received: from ifgw.interface-ag.com ([62.138.6.194] helo=mail.InterFace-AG.com) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18ywwQ-0000lT-00 for help-gnats@gnu.org; Fri, 28 Mar 2003 11:42:54 -0500 Received: by mail.InterFace-AG.com (Smail3.2) from Pinguin.InterFace-AG.com with smtp id ; Fri, 28 Mar 2003 17:42:52 +0100 (CET) Received: by Pinguin.InterFace-AG.com (Smail3.2) from interface-ag.com with esmtp id ; Fri, 28 Mar 2003 17:42:51 +0100 (CET) Message-ID: <3E847B8B.900B6EC8@interface-ag.com> Date: Fri, 28 Mar 2003 16:57:00 -0000 From: Dirk Schenkewitz X-Mailer: Mozilla 4.78 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Mel Hatzis , help-gnats References: <3E7EE1BF.C80C1981@interface-ag.com> <3E8304E0.D13191A4@interface-ag.com> <3E833FD7.9050902@juniper.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00100.txt.bz2 Mel Hatzis schrieb: >=20 > On 03/27/2003 06:04 AM, Dirk Schenkewitz submitted: >=20 > >Dirk Schenkewitz schrieb: > > > > > >>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 format= ting, > >>and even there the user did not change anything - all of this happens a= uto- > >>matically. > >> > >>As an example, here is something I found in one audit-trail. > >>/ > >>| Description-Changed-From-To: 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 e= r 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, perhap= s ? > >>Or did I make a configuration mistake ? (browser related stuff deleted) > >Has nobody else observed this ? > >(Please, people, give me a hint, even if it is something obvious - > >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). >=20 > I fixed it by changing the 'fix_multiline_val' sub, as follows: >=20 > 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; > } >=20 > This basically prevents whitespace only values from being entered > as the (multiline) field value which I consider to be a good fix. Absolutely. > 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. Weird observation, perhaps pure chance and completely unrelated, but - it seems to remove even my problem, which also happens when there already is something in a field. I have no idea what is going on. > Hope this helps. It did, so far! I'm not sure if I can believe that it's gone forever. But right now it seems to be. (Even if it comes back, now I have an idea where to tweak things.)=20 Thanks a lot, I owe you a beer, at least. :-) Have fun dirk --=20 Dirk Schenkewitz=20 InterFace AG fon: +49 (0)89 / 610 49 - 126 Leipziger Str. 16 fax: +49 (0)89 / 610 49 - 83 D-82008 Unterhaching=20=20=20=20=20=20=20=20=20 http://www.interface-ag.de mailto:dirk.schenkewitz@interface-ag.de _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats