Traceback rendering task query in dashboard


#1

I just upgraded us to 2019 Week 8 stable and every time I render a dashboard page containing a Task query, I see the following two tracebacks in the error logs:

 [2019-02-26 18:43:11] ERROR 8: Undefined index: data at [phabricator/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:1468]
 arcanist(), phabricator(custom=5), phutil()
   #0 PhabricatorCursorPagedPolicyAwareQuery::buildApplicationSearchWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:352]
   #1 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/applications/maniphest/query/ManiphestTaskQuery.php:349]
   #2 ManiphestTaskQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:337]
   #3 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/applications/maniphest/query/ManiphestTaskQuery.php:238]
   #4 ManiphestTaskQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
   #5 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:239]
   #6 PhabricatorCursorPagedPolicyAwareQuery::executeWithCursorPager(AphrontCursorPagerView) called at [<phabricator>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1025]
   #7 PhabricatorApplicationSearchEngine::executeQuery(ManiphestTaskQuery, AphrontCursorPagerView) called at [<phabricator>/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php:109]
   #8 PhabricatorDashboardQueryPanelType::renderPanelContent(PhabricatorUser, PhabricatorDashboardPanel, ManiphestTaskSearchEngine) called at [<phabricator>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:137]
   #9 PhabricatorDashboardPanelRenderingEngine::renderNormalPanel() called at [<phabricator>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:119]
   #10 PhabricatorDashboardPanelRenderingEngine::renderPanel() called at [<phabricator>/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php:41]
   #11 PhabricatorDashboardPanelRenderController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:286]
   #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:209]
   #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35]
 [2019-02-26 18:43:11] ERROR 8: Undefined index: constraints at [phabricator/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:1469]
 arcanist(), phabricator(custom=5), phutil()
   #0 PhabricatorCursorPagedPolicyAwareQuery::buildApplicationSearchWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:352]
   #1 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/applications/maniphest/query/ManiphestTaskQuery.php:349]
   #2 ManiphestTaskQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:337]
   #3 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/applications/maniphest/query/ManiphestTaskQuery.php:238]
   #4 ManiphestTaskQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
   #5 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:239]
   #6 PhabricatorCursorPagedPolicyAwareQuery::executeWithCursorPager(AphrontCursorPagerView) called at [<phabricator>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1025]
   #7 PhabricatorApplicationSearchEngine::executeQuery(ManiphestTaskQuery, AphrontCursorPagerView) called at [<phabricator>/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php:109]
   #8 PhabricatorDashboardQueryPanelType::renderPanelContent(PhabricatorUser, PhabricatorDashboardPanel, ManiphestTaskSearchEngine) called at [<phabricator>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:137]
   #9 PhabricatorDashboardPanelRenderingEngine::renderNormalPanel() called at [<phabricator>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:119]
   #10 PhabricatorDashboardPanelRenderingEngine::renderPanel() called at [<phabricator>/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php:41]
   #11 PhabricatorDashboardPanelRenderController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:286]
   #12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:209]
   #13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35]

The dashboard seems to load anyway (the XHR that triggers it returns a 200 with "error": null) but this is kind of clogging up the logs now.


#2

Do you have a “Date” custom field, and does the query include a constraint on it?


#3

Yes!


#4

Any workarounds I should be trying?


#5

See https://secure.phabricator.com/D20225.


closed #6