Page MenuHomeDevCentral

Null exception in PhabricatorStory::getRepositoryPHID() when notifications user account doesn't have an access
Closed, ResolvedPublic

Description

Stacktrace

() at /var/wwwroot/default/app/Phabricator/PhabricatorStory.php:201
Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at /var/wwwroot/default/app/Phabricator/PhabricatorStory.php:201
Nasqueron\Notifications\Phabricator\PhabricatorStory->getRepositoryPHID() at /var/wwwroot/default/app/Phabricator/PhabricatorStory.php:168
Nasqueron\Notifications\Phabricator\PhabricatorStory->getProjectsPHIDs() at /var/wwwroot/default/app/Phabricator/PhabricatorStory.php:272
Nasqueron\Notifications\Phabricator\PhabricatorStory->attachProjects() at /var/wwwroot/default/app/Phabricator/PhabricatorStory.php:260
Nasqueron\Notifications\Phabricator\PhabricatorStory->getProjects() at /var/wwwroot/default/app/Analyzers/Phabricator/PhabricatorPayloadAnalyzer.php:56
Nasqueron\Notifications\Analyzers\Phabricator\PhabricatorPayloadAnalyzer->getGroup() at /var/wwwroot/default/app/Notifications/PhabricatorNotification.php:55

Payload to repro

{"storyID":"11732","storyType":"PhabricatorApplicationTransactionFeedStory","storyData":{"objectPHID":"PHID-CMIT-zh6lg5k6hlnqpsgqlgxq","transactionPHIDs":{"PHID-XACT-CMIT-yb2sodr72qy5ilt":"PHID-XACT-CMIT-yb2sodr72qy5ilt","PHID-XACT-CMIT-jesshwb34fsqd5p":"PHID-XACT-CMIT-jesshwb34fsqd5p"}},"storyAuthorPHID":"PHID-USER-fnetlprx7zdotfm2hdrz","storyText":"dereckson committed R69:9fb18482fc91: Add MySQL settings (authored by dereckson).","epoch":"1485100997"}

the payload is to a repository accessible to ops, but the account used by the notifications client doesn't have access to this group.