public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Mel Hatzis <hatzis@juniper.net>
To: Dirk Schenkewitz <Dirk.Schenkewitz@interface-ag.com>
Cc: help-gnats <help-gnats@gnu.org>
Subject: Re: too many 'changed' entries
Date: Thu, 27 Mar 2003 18:19:00 -0000	[thread overview]
Message-ID: <3E833FD7.9050902@juniper.net> (raw)
In-Reply-To: <3E8304E0.D13191A4@interface-ag.com>

On 03/27/2003 06:04 AM, Dirk Schenkewitz submitted:

>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 formatting,
>>and even there the user did not change anything - all of this happens auto-
>>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äuft zunächst alles gut. Entspricht der Wert nicht und muss er nur überlesen werden, kommt Fehler: Variable Konstante
>>| erwartet.
>>| ->In einer Mehrfachauswahl wird auf einen String mit einem '#D
>>| ' abgefragt. Entspricht der Wert, verläuft zunächst alles
>>| gut. Entspricht der Wert nicht und muss er nur überlesen
>>| 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 ?
>>    
>>
>
>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 - 
>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 = shift;
  $val =~ s/\r\n?/\n/g;
  $val .= "\n" unless $val =~ /\n$/;
  if ($val =~ /^\s*$/)
  {
    # don't allow whitespace values to circumvent 'required' fields
    $val = "";
  }
  $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
>  
>




_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats

  reply	other threads:[~2003-03-27 18:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 10:49 Dirk Schenkewitz
2003-03-27 14:06 ` Dirk Schenkewitz
2003-03-27 18:19   ` Mel Hatzis [this message]
2003-03-28 16:57     ` Dirk Schenkewitz
2003-04-29 21:05     ` Yngve Svendsen
2003-05-07 17:05     ` Dirk Schenkewitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E833FD7.9050902@juniper.net \
    --to=hatzis@juniper.net \
    --cc=Dirk.Schenkewitz@interface-ag.com \
    --cc=help-gnats@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).