public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* Problems with Query in gnatsweb
@ 2004-05-20 20:26 Max Bernhardt - extern TAGP - Tel. 3749
  0 siblings, 0 replies; only message in thread
From: Max Bernhardt - extern TAGP - Tel. 3749 @ 2004-05-20 20:26 UTC (permalink / raw)
  To: help-gnats, bug-gnats

[-- Attachment #1: Type: text/plain, Size: 2336 bytes --]

Hi,

i just installed gnats-4.0 and gnatsweb-4.0. gnatsd is running and seems

to be working fine.

But ...

I installed the default database, but left it alone, then i installed a
second
database called 'plami' and customized it (added access rights, added
users, etc).
Then i added a test pr in the class 'support'.

Now when i do the following:

    query-pr -d plami --expr 'Class=="support"'

everything is fine and dandy. I get the info to my pr.

When i try to to the same in gnatsweb it doesn't work!
On the first try i received the following answer:

    Return code: 415 - Invalid expression.

After turning on the client_debug mode, I got the following output:

    client_cmd:
    rset
    client_cmd:
    qfmt "%s\x1f%s\x1f%d\x1f%s\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%{%Y-%m-%d %H:%M:%S
%Z}D\x1f%{%Y-%m-%d %H:%M:%S %Z}D\x1f%{%Y-%m-%d %H:%M:%S %Z}D\x1f%s\x1f%s"
builtinfield:Number Notify-List Category Synopsis Confidential Severity
Priority Responsible State Class Submitter-Id Arrival-Date Closed-Date
Last-Modified Originator Release
    client_cmd:
    expr '((! builtinfield:State[type]="closed")) & (State~"^open$")'
    Return code: 415 - Invalid expression.

After some experimenting, it seemed to me that the parentheses seemed to

be the problem.
(Also I found a thread in the Mailinglist complaining about the operator

'~'. One should use the
operator '==' instead) So i changed the relevant lines in submitquery
and appendexpr. The reply
was ok, so i thought everything was fine until ...

Well i wanted only the pr's that are open, so i unchecked "Ignore
Closed" and got the following reply:

    client_cmd:
    rset
    client_cmd:
    qfmt "%s\x1f%s\x1f%d\x1f%s\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%d\x1f%{%Y-%m-%d %H:%M:%S
%Z}D\x1f%{%Y-%m-%d %H:%M:%S %Z}D\x1f%{%Y-%m-%d %H:%M:%S %Z}D\x1f%s\x1f%s"
builtinfield:Number Notify-List Category Synopsis Confidential Severity
Priority Responsible State Class Submitter-Id Arrival-Date Closed-Date
Last-Modified Originator Release
    client_cmd:
    expr 'State=="open"'
    client_cmd:
    quer
    Return code: 220 - No PRs match.

This really is NOT what i expected! After some further experimenting it
seems to me that the
expression is not really evaluated at all.

My System is Solaris8 and i'm using either Netscape7 or Firefox0.8.

Anybody can help,  please help me this time ...

Regards

Max



--

"There is no spoon ..." ;-)



[-- Attachment #2: Card for Max Bernhardt - extern TAGP - Tel. 3749 --]
[-- Type: text/x-vcard, Size: 365 bytes --]

begin:vcard 
n:Bernhardt;Maximilian
tel;cell:+49 172 2640222
tel;fax:+49 211 533 2124
tel;work:+49 211 533 3749
x-mozilla-html:FALSE
org:;TESp - Zeitarbeiter
version:2.1
email;internet:Max.Bernhardt@vodafone.com
adr;quoted-printable:;;Mannesmann Mobilfunk GmbH=0D=0AAm Seestern5;Duesseldorf;NRW;40543;Germany
x-mozilla-cpt:;-14920
fn:Maximilian Bernhardt
end:vcard

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-18 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-20 20:26 Problems with Query in gnatsweb Max Bernhardt - extern TAGP - Tel. 3749

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).