From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked from network); 25 Aug 2004 02:51:14 -0000 Received: from unknown (HELO lists.gnu.org) (199.232.76.165) by sourceware.org with SMTP; 25 Aug 2004 02:51:14 -0000 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bznx5-0007fO-LG for listarch-gnats-devel@sources.redhat.com; Tue, 24 Aug 2004 22:55:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bznx1-0007f4-4S for help-gnats@gnu.org; Tue, 24 Aug 2004 22:55:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bznwz-0007ej-DG for help-gnats@gnu.org; Tue, 24 Aug 2004 22:55:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bznwz-0007eZ-8y for help-gnats@gnu.org; Tue, 24 Aug 2004 22:55:49 -0400 Received: from [66.60.176.161] (helo=sierralogic.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1BznsI-00067c-IP for help-gnats@gnu.org; Tue, 24 Aug 2004 22:50:58 -0400 Received: (qmail 22201 invoked from network); 25 Aug 2004 02:49:53 -0000 Received: from unknown (HELO wizard) (192.168.174.221) by 0 with SMTP; 25 Aug 2004 02:49:53 -0000 From: "Stuart Stevens" To: "'Stuart Stevens'" , Date: Thu, 26 Aug 2004 20:15:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: AcR6CrErNVcw4hiwQzeH3Uk4c6zz7QAD80dAAB7/+EABfpYeIAJvQRcg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-Id: Cc: Subject: RE: Unparseable replies from GNATS server 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: 2004-q3/txt/msg00043.txt.bz2 Ok, I have a working solution to get around two different problems. The Note has to be before Notes and Notes needs a default value. I need to do some more analysis to propose a code change. Here is my currently working solution for an append field. field "Note" { multitext on-change { append-to-field "Notes" { "\n================================================\n%D %s\n\n%s\n" "$CurrentDate" "$EditUserEmailAddr" "$NewValue" } } on-change { set-field "Note" { "" } } on-change { add-audit-trail } } field "Notes" { multitext { default "" } read-only } -----Original Message----- From: Stuart Stevens [mailto:stuart_stevens@sierralogic.com] Sent: Thursday, August 12, 2004 10:27 AM To: 'Stuart Stevens'; help-gnats@gnu.org Subject: RE: Unparseable replies from GNATS server Hi Does anybody have a recommendation on how to add an append-only comments field? I would like edits to allow new additions to the field and views to show the whole field. Stuart -----Original Message----- From: Stuart Stevens [mailto:stuart_stevens@sierralogic.com] Sent: Wednesday, August 04, 2004 7:49 PM To: 'Stuart Stevens'; help-gnats@gnu.org Subject: RE: Unparseable replies from GNATS server In edit.c, set_field is being called with old_value set to 0x00. if ((old_value == NULL && new_value != NULL) || (new_value == NULL && old_value != NULL) || (new_value != old_value && strcmp (old_value, new_value) != 0)) { /* Ignore changes to readonly fields. */ if (fieldDefForIndex (field)->readonly) { fieldsChanged[x] = 0; set_field (new_pr, field, old_value, err); } else { fieldsChanged[x] = 1; } } -----Original Message----- From: Stuart Stevens [mailto:stuart_stevens@sierralogic.com] Sent: Wednesday, August 04, 2004 5:08 AM To: 'Stuart Stevens'; help-gnats@gnu.org Subject: RE: Unparseable replies from GNATS server I am running GNATS 4.0 on Linux - Red Hat 9. I pulled the TOT and rebuilt this morning. I then run the daemon directly and I got a memory fault. The daemon fails with the following field "Comment-new" added to dbconfig: field "Comments" { multitext read-only } field "Comment-new" { multitext on-change { append-to-field "Comments" { "Comment added by %s on %D\n\n%s" "$EditUserEmailAddress" "$CurrentDate" "$NewValue" } } on-change { set-field "Comment-new" { "" } } } I issued the following commands: lock 2511 stuart editaddr stuart edit 2511 Next step is to get into the debugger. Any ideas? Thanks Stuart _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats