Page MenuHomePhabricator

PhabricatorDataNotAttachedException in PhabricatorRepositoryCommit (via getRepository())
Open, Stalled, LowPublicBUG REPORT

Description

This might be quite close to T360530: PhabricatorDataNotAttachedException when rendering project hovercard with username mentioned in project description.

Unclear reproduction steps. Seeing a few in our logs:

[2024-03-21 09:50:13] EXCEPTION: (PhabricatorDataNotAttachedException) Attempting to access attached data on PhabricatorRepositoryCommit (via getRepository()), but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.\n\nData is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly. at [<phorge>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:275]
 arcanist(), ava(), phorge(), translations(), wmf-ext-misc()
   #0 <#2> PhabricatorLiskDAO::assertAttached(string) called at [<phorge>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:59]
   #1 <#2> PhabricatorRepositoryCommit::getRepository() called at [<phorge>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:352]
   #2 <#2> PhabricatorRepositoryCommit::getMonogram() called at [<phorge>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:299]
   #3 <#2> PhabricatorRepositoryCommit::getURI() called at [<phorge>/src/applications/diffusion/controller/DiffusionExternalController.php:106]
   #4 <#2> DiffusionExternalController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
   #5 phlog(PhabricatorDataNotAttachedException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
   #6 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, PhabricatorDataNotAttachedException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
   #7 AphrontApplicationConfiguration::handleThrowable(PhabricatorDataNotAttachedException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
   #8 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:204]
   #9 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

Event Timeline

Aklapper changed the subtype of this task from "Task" to "Bug Report".
Aklapper changed the task status from Open to Stalled.Mar 27 2024, 8:57 AM
Aklapper edited projects, added Phabricator (Upstream), Upstream; removed Phabricator.

Let's wait if deploying the patch for T360530 will also fix this