Last modified: 2014-07-15 16:10:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69920, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67920 - Database Error when searching for term which includes parenthesis characters
Database Error when searching for term which includes parenthesis characters
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.23.1
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-12 10:00 UTC by asokratis
Modified: 2014-07-15 16:10 UTC (History)
1 user (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description asokratis 2014-07-12 10:00:07 UTC
searching on the wiki with characters such as ")" or "(" (maybe there are more?) will show a page with the following: 
Database Error. 
A database query error has occurred. This may indicate a bug in the software.

Examples of Search:
test)
test(

If a ticket for this has already been open, please close this ticket and refer to me where the issue so I can be monitoring it.
Comment 1 Andre Klapper 2014-07-14 10:22:44 UTC
> searching on the wiki

Which of those few hundreds? Please provide exact steps to reproduce. :)
Comment 2 asokratis 2014-07-15 14:22:13 UTC
Updated that the version of wiki 1.23.1
Comment 3 asokratis 2014-07-15 14:29:13 UTC
Haha :)

I am not good at searching, but I stumbled on this:

https://bugzilla.wikimedia.org/show_bug.cgi?id=23108

and I am going to quote this

"Some quick testing indicates this is very likely to be caused by a literal '(' in the $terms parameter, which is thrown into a regex unescaped."

Notice that he says literal '('? That is what we share in common.

Replication steps:
1)On a configured MediaWiki, on the upper right corner, there is a search textbox
2)Type something that includes the literal ')' (Example: "test)") or the literal '(' (Example: "test(")
3)The following error shows when searching such values from point 2:
"Database Error. 
A database query error has occurred. This may indicate a bug in the software."
Comment 4 asokratis 2014-07-15 14:31:34 UTC
I also am not competent on how mediawiki works. I am more of a normal user than a heavy user knowing the internals behind. I hope my bug post helps and if not, hopefully it is referred to the correct # issue.
Comment 5 Andre Klapper 2014-07-15 16:10:13 UTC
(In reply to Andre Klapper from comment #1)
> Which of those few hundreds? Please provide exact steps to reproduce. :)

Oh sorry, I didn't realize that you refer to your own hosted instance.

Search is about to get replaced by LuceneSearch so this is probably low priority currently...

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


Navigation
Links