After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325454 - Ill-formed query when searching in bugzilla
Ill-formed query when searching in bugzilla
Status: RESOLVED FIXED
Product: bugzilla.gnome.org
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Bugzilla Maintainers
Bugzilla Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-01 18:05 UTC by Simos Xenitellis
Modified: 2006-01-03 01:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simos Xenitellis 2006-01-01 18:05:30 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
&quot;Greek [el]&quot; >

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.
Comment 1 Simos Xenitellis 2006-01-01 18:15:19 UTC
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
Comment 2 Olav Vitters 2006-01-01 22:19:13 UTC
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.
Comment 3 Elijah Newren 2006-01-02 00:40:11 UTC
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.
Comment 4 Simos Xenitellis 2006-01-02 23:32:47 UTC
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 &quot;GNOME 2.14&quot; >"
Comment 5 Elijah Newren 2006-01-02 23:47:14 UTC
(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?
Comment 6 Simos Xenitellis 2006-01-03 01:31:21 UTC
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!