Phrabicator does not grok signed mails
Open, NormalPublic

Description

Reply to a Phrabicator mail using a simple signed PGP/MIME mail results in this message:

`Your email to Phabricator was not processed, because an error occurred while
trying to handle it:

PhabricatorDataNotAttachedException: Attempting to access attached data on
PhabricatorUser (via getUserSetting()), but the data is not actually attached.
Before accessing attachable data on an object, you must load and attach it.

Data 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.
`

werner created this task.Apr 28 2017, 2:35 PM

And here is the stack backtrace I also received:

Command died with status 255: "
/opt/phacility/phabricator/scripts/mail/mail_handler.php". Command output:
[2017-04-28 11:43:03] EXCEPTION: (PhabricatorDataNotAttachedException)
Attempting to access attached data on PhabricatorUser (via
getUserSetting()), but the data is not actually attached. Before accessing
attachable data on an object, you must load and attach it.  Data 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
[<phabricator>/src/applications/people/storage/PhabricatorUser.php:1538]
arcanist(head=stable, ref.master=3b6b523c2b23, ref.stable=40f7d68f75ea),
phabricator(head=gnupg-stable, ref.master=1953ab98be2b,
ref.gnupg-stable=34d0951cbd06), phutil(head=gnupg-stable,
ref.master=91ab940c3979, ref.gnupg-stable=f7403fb31b17)   #0
PhabricatorUser::requireCacheData(string) called at
[<phabricator>/src/applications/people/storage/PhabricatorUser.php:519]
#1 PhabricatorUser::getUserSetting(string) called at
[<phabricator>/src/applications/people/storage/PhabricatorUser.php:576]
#2 PhabricatorUser::getTimezoneIdentifier() called at
[<phabricator>/src/applications/calendar/storage/PhabricatorCalendarEvent.php:304]
#3 PhabricatorCalendarEvent::applyViewerTimezone(PhabricatorUser) called at
[<phabricator>/src/applications/calendar/query/PhabricatorCalendarEventQuery.php:167]
#4 PhabricatorCalendarEventQuery::loadPage() called at
[<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
#5 PhabricatorPolicyAwareQuery::execute() called at
[<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:168]
#6 PhabricatorPolicyAwareQuery::executeOne() called at
[<phabricator>/src/applications/calendar/mail/PhabricatorCalendarEventMailReceiver.php:21]
#7 PhabricatorCalendarEventMailReceiver::loadObject(string,
PhabricatorUser) called at
[<phabricator>/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php:197]
#8
PhabricatorObjectMailReceiver::loadObjectFromMail(PhabricatorMetaMTAReceivedMail,
PhabricatorUser) called at
[<phabricator>/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php:77]
#9
PhabricatorObjectMailReceiver::validateSender(PhabricatorMetaMTAReceivedMail,
PhabricatorUser) called at
[<phabricator>/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php:114]
#10 PhabricatorMetaMTAReceivedMail::processReceivedMail() called at
[<phabricator>/scripts/mail/mail_handler.php:88]
marcus removed marcus as the assignee of this task.Oct 1 2017, 2:06 PM
marcus added a subscriber: marcus.