Bug 826829 - Software error when doing anywords or allwords search that starts or ends with a space
Summary: Software error when doing anywords or allwords search that starts or ends wit...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Bugzilla
Classification: Community
Component: Query/Bug List
Version: 4.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Simon Green
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-31 05:20 UTC by Qin Guan
Modified: 2025-10-16 23:32 UTC (History)
3 users (show)

Fixed In Version: 4.2.1-2
Clone Of:
Environment:
Last Closed: 2012-06-11 23:39:38 UTC
Embargoed:


Attachments (Terms of Use)
20120531-bugzilla-query-error.txt (3.50 KB, text/plain)
2012-05-31 05:22 UTC, Qin Guan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 760075 0 None None None Never

Description Qin Guan 2012-05-31 05:20:51 UTC
Description of problem:

Found this error when query bugs with space in front of the string in the comment of the detailed bug information.

Please stand by ...
Software error:

DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')

Version-Release number of selected component (if applicable):
4.2

How reproducible:
100%

Steps to Reproduce:
1. Open the Advanced Search page
2. Select any Product and Component, such as 
 Product : Red Hat Enterprise Linux 5
 Component: kernel-xen
3. Input a string into the Comment Input box with a space in front of, like " vcpu" (without quotes), like below: 
 Detailed Bug Information 
 Comment:  contains all of the strings " vcpu"(without quotes)
  
Actual results:
Software error

Expected results:
No Software error

Additional info:

Comment 1 Qin Guan 2012-05-31 05:22:08 UTC
Created attachment 587939 [details]
20120531-bugzilla-query-error.txt

Comment 2 Simon Green 2012-05-31 06:31:20 UTC
Reason for hotfix: This one is going upstream, but I want to provide a patch for them too.

Comment 4 Simon Green 2012-05-31 13:03:10 UTC
Filed upstream at https://bugzilla.mozilla.org/show_bug.cgi?id=760075

Will be in our 4.2.1-2 release regardless.

  -- simon

Comment 5 Simon Green 2012-06-06 05:55:42 UTC
Upstream rejected our changes because it caused an unintended side effect. We will fix our code to match the change upstream too.

  -- simon

Comment 6 Simon Green 2012-06-11 23:39:38 UTC
The upstream change was approved for Bugzilla 4.2, so we will inherit it with the next release.

  -- simon


Note You need to log in before you can comment on or make changes to this bug.