[Top][All Lists]
[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%-> query-pr --version</tt></font>
<br><font size=3><tt>query-pr 4.0.1</tt></font>
<br>
<br><font size=3><tt>%64-> rpm -qi gnats</tt></font>
<br><font size=3><tt>Name : gnats
Relocations: (not relocateable)</tt></font>
<br><font size=3><tt>Version : 4.0.1
Vendor:
WRD SUN TAC</tt></font>
<br><font size=3><tt>Release : 2
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
Build Host: xxxxxxxxxxxxxxxxxxxxxxx</tt></font>
<br><font size=3><tt>Group : Development/Tools
Source RPM: gnats-4.0.1-2.src.rpm</tt></font>
<br><font size=3><tt>Size : 1983510
License: GNU General Public License Version 2</tt></font>
<br><font size=3><tt>Packager : James E. Morris
<address@hidden></tt></font>
<br><font size=3><tt>Summary : %{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 "on-change" 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 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 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 "Notify-List" {</font>
<br><font size=2 face="sans-serif"> description "Addresses
to notify of significant PR changes"</font>
<br><font size=2 face="sans-serif"> text</font>
<br><font size=2 face="sans-serif"> query-default
inexact-regexp</font>
<br><font size=2 face="sans-serif"> 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
"Documentation-Responsible-Party" {</font>
<br><font size=2 face="sans-serif"> description "UNIX id of
documentation responsible party"</font>
<br><font size=2 face="sans-serif"> text</font>
<br><font size=2 face="sans-serif"> query-default
inexact-regexp</font>
<br><font size=2 face="sans-serif"> textsearch</font>
<br><font size=2 face="sans-serif"> on-change {</font>
<br><font size=2 face="sans-serif"> # Add
Audit-Trail entries when this field changes.</font>
<br><font size=2 face="sans-serif">
add-audit-trail</font>
<br><font size=2 face="sans-serif"> # Add to
Notify-List entries when this field changes</font>
<br><font size=2 face="sans-serif"> set-field
"Documentation-Responsible-Party" { </font>
<br><font size=2 face="sans-serif">
"<b>%S</b>" </font>
<br><font size=2 face="sans-serif">
"$NewValue" </font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> append-to-field
"Notify-List" { </font>
<br><font size=2 face="sans-serif"> "
<b>%S</b>" </font>
<br><font size=2 face="sans-serif">
"$NewValue"</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> }</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> System Environment:</tt></font>
<br><font size=3><tt> SunOS <i>servername</i> 5.10
Generic_125100-09 sun4u sparc SUNW,Sun-Fire-V245 </tt></font>
<br><font size=3><tt> </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 "standard" variables for use in the dbconfig
"cooking" would be handy.</font></ul>
--=_alternative 006D944505257399_=--
>Fix:
Unknown
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 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),
bug-gnats <=