Re: gnatsd problems with 4.0.1

Tim Buck <[email protected]>
Newsgroups gmane.comp.bug-tracking.gnats.general
Message-ID <[email protected]>
On Jan 5, 2005, at 5:24 PM, Chad Walstrom wrote:

> Tim Buck wrote:
>> However, the debugging binary doesn't work correctly. Some commands
>> (such as DBLS) work, but most EXPR commands return "415 invalid
>> expression" (the same expressions work in gnats 4.0).
>
> This is strange.  There were no changes to the regex code between 4.0
> and 4.0.1.  Have you tested simple expressions as well as more complex
> ones?  If you could share what you've tried, perhaps we can test on our
> own as well.

Here's a very simple example. This query string was generated by
GNATSweb. Both versions of GNATS were built on the same machine &
platform (FreeBSD 5.3/amd64):

using GNATS 4.0:
200 maytag.rrinc.com GNATS server 4.0 ready.
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'edit'
EXPR (State[type]!="closed") & (Responsible~"^tim$")
210 Ok.

using GNATS 4.0.1:
200 maytag.rrinc.com GNATS server 4.0.1 ready.
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'edit'
EXPR (State[type]!="closed") & (Responsible~"^tim$")
415 Invalid expression.

However, if I use a simpler version of that expression without the
extraneous parentheses (rather than the one generated from GNATSweb),
it works:

200 maytag.rrinc.com GNATS server 4.0.1 ready.
CHDB default
210-Now accessing GNATS database 'default'
210 User access level set to 'edit'
EXPR State[type]!="closed" & Responsible~"tim"
210 Ok.

I hope this info helps.

Tim Buck * Information Technology Manager * Recognition Research, Inc.
PHONE +1 540 961-6500 * FAX +1 540 961-3568 * EMAIL [email protected]
The only thing to do with good advice is to pass it on. -- Oscar Wilde
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.