Page MenuHomePhorge

Dashboard query panel requiring a Current Viewer throws exception when not logged in
Closed, ResolvedPublic

Description

  1. Phorge at 5444e1c885c337ede0f1fb4ad1916ae0b49b1413, PHP 8.3.6
  2. Go to an existing dashboard like http://phorge.localhost/dashboard/view/1/
  3. Make sure that "Visible to" policy of the dashboard is set to "Public".
  4. Click "Create Panel" on the Dashboard.
  5. In the "Choose Panel Type" dialog, select "Query Panel".
  6. Set "Name" to "ProjectsJoined", set "Search For" to "Projects", set "Query" to "Joined".
  7. Click "Create Panel".
  8. Access the dashboard URL while not being logged into Phorge.
[2024-04-15 01:19:48] EXCEPTION: (Exception) Query "joined" is unknown to application search engine "PhabricatorProjectSearchEngine"! at [<phorge>/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php:80]
arcanist(), ava(), phorge(), translations(), wmf-ext-misc()
  #0 <#2> PhabricatorDashboardQueryPanelType::renderPanelContent(PhabricatorUser, PhabricatorDashboardPanel, PhabricatorProjectSearchEngine) called at [<phorge>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:173]
  #1 <#2> PhabricatorDashboardPanelRenderingEngine::renderNormalPanel() called at [<phorge>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:156]
  #2 phlog(Exception) called at [<phorge>/src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php:158]
  #3 PhabricatorDashboardPanelRenderingEngine::renderPanel() called at [<phorge>/src/applications/dashboard/controller/panel/PhabricatorDashboardPanelViewController.php:52]
  #4 PhabricatorDashboardPanelViewController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #5 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
  #6 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]