Page MenuHomePhorge

Owners: Unhandled Exception: No repository PHID for path "0"!
Open, Needs TriagePublic

Description

  1. PHP 8.2.6; Phorge at 5405134fa5db77bfdc0f5dbc55ed07134a60799a (but also happens with PHP 7.4 in old upstream)
  2. Go to http://phorge.localhost/owners/
  3. Select Create Package in upper right corner to go to http://phorge.localhost/owners/edit/form/default/
  4. In the Name field, enter package
  5. Select Create New Package button
  6. Select Edit Paths in the sidebar to go to http://phorge.localhost/owners/paths/1/
  7. See that the second input field says "Type a repository name..." and is empty; see that third field shows /
  8. Leave all fields as is and select the Save Paths button
[2023-05-27 11:19:02] EXCEPTION: (Exception) No repository PHID for path "0"! at [<phorge>/src/applications/owners/controller/PhabricatorOwnersPathsController.php:31]
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=package0, ref.master=5405134fa5db, ref.package0=5405134fa5db)
  #0 <#2> PhabricatorOwnersPathsController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #1 phlog(Exception) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #2 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, Exception) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #3 AphrontApplicationConfiguration::handleThrowable(Exception) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #4 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #5 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]