Page MenuHomePhabricator

Unhandled exception "syntax error, unexpected $end" when search string ends in whitespace
Closed, ResolvedPublic

Description

An exception is thrown when searching with a query string that ends in a space:

Unhandled Exception ("AphrontQueryException")	
#1064: syntax error, unexpected $end

Example: plain search, Maniphest

Revisions and Commits

Event Timeline

Aklapper renamed this task from syntax error, unexpected $end to Unhandled exception "syntax error, unexpected $end" when search string ends in whitespace.Oct 22 2016, 8:28 PM
Aklapper triaged this task as Low priority.

Interesting. I can reproduce on this instance but not in upstream when entering foo in "Contains Words" on /maniphest/query/advanced/

@Aklapper this is most likely because we did a change to support innodb full text search better.

Most likely fixed by https://phabricator.wikimedia.org/D414

Works on the test instance now.

Paladox added a revision: Restricted Differential Revision.Oct 30 2016, 3:56 PM
Paladox assigned this task to mmodell.
Paladox edited projects, added Phabricator (2016-11-16); removed Phabricator.

Works now with the new update to phabricator.

Please reopen if you still have this problem.