[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in gnatsweb-site.pl
From: |
Dirk Schenkewitz |
Subject: |
bug in gnatsweb-site.pl |
Date: |
Fri, 26 Jul 2002 16:03:11 +0200 |
Hi people,
we discovered the following bug in gnatsweb-site.pl for gnats4:
On the main page of gnatsweb there are tho buttons behind
"Direct search". If someone clicks one of them, he/she gets an
overwiew of all matching messages, every one in the form of a
string where the different fields are delimited by "|" - and
the whole string is placed under the column "Number", while
all other columns are empty.
I figured out what's wrong: in gnatsweb-site.pl in
sub callback below "elsif ($reason eq 'cmd')" a new format is
defined via 'qfmt' - the "offending" line is:
client_cmd('qfmt "%s|%d|%s|%d|%d|%{%Y-%m-%d %H:%M:%S %Z}D" ' .
this must be changed to:
client_cmd('qfmt "%s^_%d^_%s^_%d^_%d^_%{%Y-%m-%d %H:%M:%S %Z}D" ' .
("^_" is "unit seperator", octal 037)
because 'sub display_query_results' in gnatsweb.pl uses this
"character" to find the field borders. The "|" is not considered
as a delimiter and so everything lands in the first column.
The same problem exists some lines deeper, below
"elsif ($cmd eq 'not closed')", the solution is the same:
replace every '|' in the line
client_cmd('qfmt "%s|%d|%s|%d|%d|%{%Y-%m-%d %H:%M:%S %Z}D" ' .
with '^_' (octal 037).
greetings
dirk
p.s. Please anyone give me a hint that this is been read by
someone who can fix it... :-)
--
Dirk Schenkewitz
InterFace AG fon: +49 (0)89 / 610 49 - 126
Leipziger Str. 16 fax: +49 (0)89 / 610 49 - 83
D-82008 Unterhaching
http://www.interface-ag.de mailto:address@hidden
- bug in gnatsweb-site.pl,
Dirk Schenkewitz <=