Query Problems

View: New views
3 Messages — Rating Filter:   Alert me  

Query Problems

by age85 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

we have Gnatsweb v4.00, Gnats v4.1.0 under OpenSuse 10.3 installed. Everything went fine (create, edit, view), except the query function. Searching with one condition is fine, but using more than one condition, eg searching all open bugs in the topic sysadmin gives me the following (shortened) debug output:

###################START-OUTPUT##########################
client_cmd:

rset


server_reply: 210 Reset state...reloaded the index.

client_cmd:

expr ((! builtinfield:State[type]="closed")) & (Category~"^SysAdmin$")


server_reply: 415 Invalid expression.
###################END-OUTPUT##########################

Here is another example searching for all confidential bugs in sysadmin threads in this line:
expr (Category~"^SysAdmin$") & (Confidential~"^yes$")

Any help is welcome!

Thanks in advance,

René

Re: Query Problems

by age85 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It looks so that someone have problems with spaces...eg

query-pr --expr '(Category="XXX") & (builtinfield:State[type]!="closed")'
--> Cannot parse `
query-pr --expr '(Category="XXX")&(builtinfield:State[type]!="closed")'  
--> Works fine

As workaround I fixed the following lines in gnatsweb.pl

#$expr = appendexpr ('(! builtinfield:State[type]="closed")', '&', $expr);                                                                                                                                                        
  $expr = appendexpr ('(!builtinfield:State[type]="closed")', '&', $expr);

# return "($lhs) $op ($rhs)";                                                                                                                                                                                                        
   return "($lhs)$op($rhs)";

Hope this helps somebody,

René

Re: Query Problems

by Chad Walstrom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The spaces issue with querying was recently (within the last couple
months) and fixed by another community member.  I believe I checked in
the fix in CVS, the pre-4.2 version of the software.  I think it's
probably time to just cut a release of 4.2 and get it out the door.  You
could probably backport the change easily.  I, unfortunately, have had
little leisure time to dedicate to anything other than work, my family,
and a bathroom project.  If anyone wants to stop up and help co-maintain
this project, please speak up! ;-)

Chad


_______________________________________________
Bug-gnats mailing list
Bug-gnats@...
http://lists.gnu.org/mailman/listinfo/bug-gnats
LightInTheBox - Buy quality products at wholesale price!