Page MenuHomePhabricator

InvalidArgumentException in ManiphestTaskSearchEngine.php
Closed, ResolvedPublic

Description

Since an update yesterday im seeing an exception on my dashboard inside the recent tasks block:

InvalidArgumentException: Argument 1 passed to PhabricatorTypeaheadDatasource::evaluateTokens() must be of the type array, null given, called in /srv/http/phabricator/src/applications/maniphest/query/ManiphestTaskSearchEngine.php on line 145 and defined

Revisions and Commits

Restricted Differential Revision

Event Timeline

wienczny raised the priority of this task from to Needs Triage.
wienczny updated the task description. (Show Details)
wienczny added a subscriber: wienczny.

This breaks the built-in "Authored" and "All Tasks" queries.

Since an update yesterday

Can you update to HEAD and see if it reproduces, please.

Issue doesn't seem to be present in rP3a2c2ae3c3ae3d88427ec96787840119508c2e73, and appears in rPb49645d25b60329cfdd181d7b1dd1dbce30d349f (and in HEAD)

OK, I got a local install at HEAD and it's reproducing "Authored" as failing. Thanks for the report!

Sorry, those commit hashes are not correct. Issue seems to have been introduced in rPf64ca87bfea01a355f3fbf4fa03c460995b5da99

Does someone have detailed repro steps? Here's what I tried:

  • Go to Maniphest.
  • Type a username in the "Authors" field.
  • Search for tasks.

This works fine for me at HEAD, though.

Oh, it's the "authored" prebuilt query specifically.

I clicked on the "Authored" built-in

epriestley added a revision: Restricted Differential Revision.Apr 24 2015, 3:38 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Apr 24 2015, 3:39 PM
epriestley added a commit: Restricted Diffusion Commit.

I'm up to date with your patch, Evan, but I'm still getting this error. I have a live repro if you want to see it.

Is it possible that you didn't restart Apache (or PHP-FPM, if running nginx + php-fpm) and the old code is stuck in APC?

It was APC. Sorry. I thought I had restarted lighttpd after the pull but apparently I've lost my mind.