GNOME Bugzilla – Bug 325454
Ill-formed query when searching in bugzilla
Last modified: 2006-01-03 01:31:21 UTC
Please describe the problem: I use as an example the "l10n" product. The same bug goes for other products as well. Steps to reproduce: 1. Visit http://bugzilla.gnome.org/browse.cgi?product=l10n 2. Click on the name of a component (in this page it is language name). Try Greek. 3. Notice that in the search textbox a query is added for the specific language. 4. Click on Show Actual results: I get an ill-formed query error: Bad Query. <!-- 'component:"Greek [el]" ' is ill-formed. Invalid token at "Greek [el]" > Expected results: I should be able to get a page with bug for the Greek component. Does this happen every time? Yes. Other information: When you click on the number next to the component (=number of bugs), the query works.
The query that the "wizard" creates looks like http://bugzilla.gnome.org/buglist.cgi?query=component%3A%22Greek+%5Bel%5D%22+ The correct should be something like http://bugzilla.gnome.org/buglist.cgi?query=&component=Greek+%5Bel%5D
Think this is an error in Boogle. Query ic created as: component:"Greek [el]" Escaping the [ and ] works (can be added in the javascript), but believe Boogle should allow [el] to just work.
Yeah, as Olav figure out, it's just a bug in boogle. My regex for allowed quoted strings didn't include left and right square braces. I've added that now. The suggested query in comment 1 would not be right. The space would mean that "[el]" is text to search for in the bug and that the component name should be "Greek" not "Greek [el]". An alternative query that would work would be one where the space was backslash escaped instead of putting quotes around the word, but I'd rather leave the quotes there as it'll be obvious to more people the reason for them.
The same issue appears to exist with the "Versions" column. For example, 1. Visit http://bugzilla.gnome.org/browse.cgi?product=l10n 2. Under "Versions", click GNOME 2.10" 3. Click on Show The error states "Bad Query. <!-- 'version:"GNOME 2.14" ' is ill-formed. Invalid token at "GNOME 2.14" >"
(In reply to comment #4) > The same issue appears to exist with the "Versions" column. Dude, you rock! Thanks for finding these. The '.' was another missing allowed character in my regexp. Fixed now. Any other queries that fail that shouldn't?
It appears it's rock solid now :). I will be announcing the http://bugzilla.gnome.org/browse.cgi?product=l10n to the localisation mailing list, so there should be some more testing coming up. Thanks for fixing these promptly!