Page MenuHomePhorge

AphrontQueryException creating a Diffusion Identity without entering assignee
Closed, DuplicatePublic

Description

  1. PHP 8.2.6; Phorge at cbc0e661544a31290099ab3d88481bb8d4a3003c with D25271 applied on top
  2. Go to http://phorge.localhost/diffusion/identity/
  3. Select Create Identity in upper right corner to go to http://phorge.localhost/diffusion/identity/edit/form/default/
  4. Select the Create Identity button without entering anything in the Assigned To field
[2023-06-02 17:33:55] EXCEPTION: (AphrontQueryException) #1048: Column 'authorPHID' cannot be null at [<phorge>/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:396]
arcanist(head=master, ref.master=b325304b6e52), phorge(head=diffusionCreateIdentity, ref.master=cbc0e661544a, ref.diffusionCreateIdentity=cbc0e661544a)
  #0 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phorge>/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:321]
  #1 <#2> AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phorge>/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:217]
  #2 <#2> AphrontBaseMySQLDatabaseConnection::executeQuery(PhutilQueryString) called at [<phorge>/src/infrastructure/storage/xsprintf/queryfx.php:8]
  #3 <#2> queryfx(AphrontMySQLiDatabaseConnection, string, PhutilQueryString, PhabricatorRepositoryIdentity, array, array) called at [<phorge>/src/infrastructure/storage/connection/AphrontDatabaseConnection.php:58]
  #4 <#2> AphrontDatabaseConnection::query(string, PhutilQueryString, PhabricatorRepositoryIdentity, array, array) called at [<phorge>/src/infrastructure/storage/lisk/LiskDAO.php:1117]
  #5 <#2> LiskDAO::insertRecordIntoDatabase(string) called at [<phorge>/src/infrastructure/storage/lisk/LiskDAO.php:954]
  #6 <#2> LiskDAO::insert() called at [<phorge>/src/infrastructure/storage/lisk/LiskDAO.php:923]
  #7 <#2> LiskDAO::save() called at [<phorge>/src/applications/repository/storage/PhabricatorRepositoryIdentity.php:130]
  #8 <#2> PhabricatorRepositoryIdentity::save() called at [<phorge>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1354]
  #9 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorRepositoryIdentity, array) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1149]
  #10 <#2> PhabricatorEditEngine::buildEditResponse(PhabricatorRepositoryIdentity) called at [<phorge>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1000]
  #11 <#2> PhabricatorEditEngine::buildResponse() called at [<phorge>/src/applications/diffusion/controller/DiffusionIdentityEditController.php:9]
  #12 <#2> DiffusionIdentityEditController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #13 phlog(AphrontQueryException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #14 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, AphrontQueryException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]
  #15 AphrontApplicationConfiguration::handleThrowable(AphrontQueryException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296]
  #16 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #17 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]