gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pending/1422: The %S format is not truncating input after the first spac


From: bug-gnats
Subject: pending/1422: The %S format is not truncating input after the first space as documented in the Gnats-4 manual using field on-change with set-field or append-to-field (pending)
Date: Sat, 10 Jan 2009 23:16:11 -0600 (CST)

>Number:         1422
>Category:       pending
>Synopsis:       The %S format is not truncating input after the first space as 
>documented
 in the Gnats-4 manual using field on-change with set-field or
 append-to-field
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 10 23:16:11 -0600 2009
>Originator:     James R Kirk <address@hidden>
>Release:        
>Description:
 This is a multipart message in MIME format.
 --=_alternative 006D944505257399_=
 Content-Type: text/plain; charset="us-ascii"
 
 The GNATS version you are using. 
 
 63%-> query-pr --version
 query-pr 4.0.1
 
 %64-> rpm -qi gnats
 Name        : gnats                        Relocations: (not relocateable)
 Version     : 4.0.1                             Vendor: WRD SUN TAC
 Release     : 2                             Build Date: Tue Apr 12 
 17:15:36 2005
 Install date: Fri Feb 09 08:05:06 2007      Build Host: 
 xxxxxxxxxxxxxxxxxxxxxxx
 Group       : Development/Tools             Source RPM: 
 gnats-4.0.1-2.src.rpm
 Size        : 1983510                          License: GNU General Public 
 License Version 2
 Packager    : James E. Morris <address@hidden>
 Summary     : %{name} - A bug tracking system
 
 Tue Apr 12 2005 Jim Morris 
 Reset localhost access back to listdb. The gnatsd.user_access was added so 
 username could be verified if needed 
 Fri Feb 25 2005 Jim Morris 
 4.0.1-1 Updated to latest release
 
 The exact steps involved to reproduce the bug.
 
 Working on some user requested new fields and "on-change" rules
 If I change the Documentation-Responsible-Party from an existing string to a 
string containing a space, the entire string 
 is set  in Documentation-Responsible-Party and appended in Notify-List, not 
just the part of the string  before the space.
 
 Parts of dbconfig file with the problem, in the two added fields:
 . . . 
 
 field "Notify-List" {
     description "Addresses to notify of significant PR changes"
     text
     query-default inexact-regexp
     textsearch
 }
 . . . 
 
 field "Documentation-Responsible-Party" {
     description "UNIX id of documentation responsible party"
     text
     query-default inexact-regexp
     textsearch
     on-change {
         # Add Audit-Trail entries when this field changes.
         add-audit-trail
         # Add to Notify-List entries when this field changes
         set-field "Documentation-Responsible-Party" { 
         "%S" 
         "$NewValue" 
         }
         append-to-field  "Notify-List" { 
         " %S" 
           "$NewValue"
         }
     }
 }
 . . . 
 
 Your configuration.
     System Environment:
         SunOS servername 5.10 Generic_125100-09 sun4u sparc SUNW,Sun-Fire-V245 
  
 If you encounter a compilation or build problem, it is especially 
 important to mention the operating system, compiler and possibly other 
 build utilities you use.
 gnatsweb has been customized using javascript mainly to group our 300+ 
 categories into 14 groups to easechoosing a category and to allow 
 attachments
 
 More examples in the dbconfig recipes, and a list of available "standard" 
 variables for use in the dbconfig "cooking" would be handy.
 --=_alternative 006D944505257399_=
 Content-Type: text/html; charset="us-ascii"
 
 
 <ul>
 <li><font size=3 face="Times New Roman">The GNATS version you are 
using.</font><font size=3><tt> </tt></font>
 <br>
 <br><font size=3><tt>63%-&gt; query-pr --version</tt></font>
 <br><font size=3><tt>query-pr 4.0.1</tt></font>
 <br>
 <br><font size=3><tt>%64-&gt; rpm -qi gnats</tt></font>
 <br><font size=3><tt>Name &nbsp; &nbsp; &nbsp; &nbsp;: gnats &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;Relocations: (not relocateable)</tt></font>
 <br><font size=3><tt>Version &nbsp; &nbsp; : 4.0.1 &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vendor: 
WRD SUN TAC</tt></font>
 <br><font size=3><tt>Release &nbsp; &nbsp; : 2 &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Build 
Date: Tue Apr 12 17:15:36 2005</tt></font>
 <br><font size=3><tt>Install date: Fri Feb 09 08:05:06 2007 &nbsp; &nbsp; 
&nbsp;Build Host: xxxxxxxxxxxxxxxxxxxxxxx</tt></font>
 <br><font size=3><tt>Group &nbsp; &nbsp; &nbsp; : Development/Tools &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Source RPM: gnats-4.0.1-2.src.rpm</tt></font>
 <br><font size=3><tt>Size &nbsp; &nbsp; &nbsp; &nbsp;: 1983510 &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;License: GNU General Public License Version 2</tt></font>
 <br><font size=3><tt>Packager &nbsp; &nbsp;: James E. Morris 
&lt;address@hidden&gt;</tt></font>
 <br><font size=3><tt>Summary &nbsp; &nbsp; : %{name} - A bug tracking 
system</tt></font>
 <br>
 <br><font size=3 face="Times New Roman">Tue Apr 12 2005 Jim Morris </font>
 <br><font size=3 face="Times New Roman">Reset localhost access back to listdb. 
The gnatsd.user_access was added so username could be verified if needed </font>
 <br><font size=3 face="Times New Roman">Fri Feb 25 2005 Jim Morris </font>
 <br><font size=3 face="Times New Roman">4.0.1-1 Updated to latest 
release</font>
 <br></ul>
 <ul>
 <li><font size=3 face="Times New Roman">The <i>exact</i> steps involved to 
reproduce the bug.</font>
 <br>
 <br><font size=3 face="sans-serif">Working on some user requested new fields 
and &quot;on-change&quot; rules</font>
 <br><font size=3 face="sans-serif">If I change the </font><font size=2 
face="sans-serif"><b>Documentation-Responsible-Party</b></font><font size=3 
face="sans-serif"> from an existing string to a string containing a space, the 
entire string is set &nbsp;in </font><font size=2 
face="sans-serif"><b>Documentation-Responsible-Party</b></font><font size=3 
face="sans-serif"> and appended in </font><font size=2 
face="sans-serif"><b>Notify-List</b></font><font size=3 face="sans-serif">, not 
just the part of the string &nbsp;before the space.</font>
 <br>
 <br><font size=3 face="sans-serif">Parts of dbconfig file with the problem, in 
the two added fields:</font>
 <br><a href="mailto:address@hidden";></a><font size=4 face="sans-serif"><b>. . 
. </b></font>
 <br>
 <br><font size=2 face="sans-serif">field &quot;Notify-List&quot; {</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; description &quot;Addresses 
to notify of significant PR changes&quot;</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; text</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; query-default 
inexact-regexp</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; textsearch</font>
 <br><font size=2 face="sans-serif">}</font>
 <br><font size=4 face="sans-serif"><b>. . . </b></font>
 <br>
 <br><font size=2 face="sans-serif">field 
&quot;Documentation-Responsible-Party&quot; {</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; description &quot;UNIX id of 
documentation responsible party&quot;</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; text</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; query-default 
inexact-regexp</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; textsearch</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; on-change {</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; # Add 
Audit-Trail entries when this field changes.</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 
add-audit-trail</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; # Add to 
Notify-List entries when this field changes</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; set-field 
&quot;Documentation-Responsible-Party&quot; { </font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 
&quot;<b>%S</b>&quot; &nbsp;</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; 
&quot;$NewValue&quot; </font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; append-to-field 
&nbsp;&quot;Notify-List&quot; { </font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &quot; 
<b>%S</b>&quot; </font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&quot;$NewValue&quot;</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
 <br><font size=2 face="sans-serif">&nbsp; &nbsp; }</font>
 <br><font size=2 face="sans-serif">}</font>
 <br><font size=4 face="sans-serif"><b>. . . </b></font>
 <br></ul>
 <ul>
 <li><font size=3 face="Times New Roman">Your configuration.</font>
 <br><font size=3><tt>&nbsp; &nbsp; System Environment:</tt></font>
 <br><font size=3><tt>&nbsp; &nbsp; &nbsp; &nbsp; SunOS <i>servername</i> 5.10 
Generic_125100-09 sun4u sparc SUNW,Sun-Fire-V245 </tt></font>
 <br><font size=3><tt>&nbsp;</tt></font></ul>
 <ul>
 <li><font size=3 face="Times New Roman">If you encounter a compilation or 
build problem, it is especially important to mention the operating system, 
compiler and possibly other build utilities you use.</font></ul>
 <ul>
 <li><font size=3 face="Times New Roman">gnatsweb has been customized using 
javascript mainly to group our 300+ categories into 14 groups to easechoosing a 
category and to allow attachments</font>
 <li>
 <li><font size=3 face="Times New Roman">More examples in the dbconfig recipes, 
and a list of available &quot;standard&quot; variables for use in the dbconfig 
&quot;cooking&quot; would be handy.</font></ul>
 --=_alternative 006D944505257399_=--
 
>Fix:

Unknown




reply via email to

[Prev in Thread] Current Thread [Next in Thread]