public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Max Bernhardt - extern TAGP - Tel. 3749" <Max.Bernhardt@vodafone.com>
To: help-gnats@gnu.org, bug-gnats@gnu.org
Subject: Problems with Query in gnatsweb
Date: Thu, 20 May 2004 20:26:00 -0000	[thread overview]
Message-ID: <40AA0C1E.F0919FAF@vodafone.com> (raw)

[-- 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

                 reply	other threads:[~2004-05-18 14:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40AA0C1E.F0919FAF@vodafone.com \
    --to=max.bernhardt@vodafone.com \
    --cc=bug-gnats@gnu.org \
    --cc=help-gnats@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).