Page MenuHomePhabricator

"Unknown Object (????)" in outbound email
Closed, ResolvedPublic

Description

I'm seeing a lot of "Unknown Object (????)" in outbound email and haven't been able to track down the origin.

> ./bin/mail show-outbound --id 1072047
PROPERTIES
ID: 1072047
Status: sent
Related PHID: PHID-TASK-smnvqfbuvqja3p27aqt7
Message: 

PARAMETERS
subject: T22657: Redacted
from: PHID-USER-abzwhc667osh5mwd4gk7
subject-prefix: [Maniphest]
vary-subject-prefix: [Commented On]
thread-id: maniphest-task-PHID-TASK-smnvqfbuvqja3p27aqt7
is-first-message: 
exclude: []
herald-force-recipients: []
mailtags: ["maniphest-cc","maniphest-comment"]
is-bulk: 1
cc: ["PHID-USER-yl3qonlcgmrtn3tdxppz"]
reply-to: T22657+150+00280d10d1da5c4e@phabricator.redacted.com

HEADERS
Thread-Topic: T22657: Redacted
X-Herald-Rules: <24>, none
X-Phabricator-Projects: <#phabricator>, <#access>
X-Phabricator-To: <>
X-Phabricator-To: <PHID-USER-abzwhc667osh5mwd4gk7>
X-Phabricator-Cc: <PHID-USER-abzwhc667osh5mwd4gk7>
X-Phabricator-Cc: <PHID-USER-zdfjlthsika5l4t7kr5f>
X-Phabricator-Cc: <PHID-USER-qmv4kxbn5feyvktqlcx7>
X-Phabricator-Cc: <PHID-USER-inwz7rtaiuxgmjduhmmq>
X-Phabricator-Cc: <PHID-USER-hfenohlvucsbthy2su73>
X-Phabricator-Cc: <PHID-USER-yl3qonlcgmrtn3tdxppz>

RECIPIENTS
  REDACTED

TEXT BODY
josh added a subscriber: josh.
josh added a comment.

OK, that works too.


TASK DETAIL
  https://phabricator.redacted.com/T22657

EMAIL PREFERENCES
  https://phabricator.redacted.com/settings/panel/emailpreferences/

To: Unknown Object (????), josh
Cc: josh, REDACTED


HTML BODY
<div>josh added a subscriber: josh.<br />
josh added a comment.</div><br /><p>OK, that works too.</p><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.redacted.com/T22657" rel="noreferrer">https://phabricator.redacted.com/T22657</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.redacted.com/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.redacted.com/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>Unknown Object (????), josh<br /><strong>Cc: </strong>josh, REDACTED<br /></div>

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Mail.
joshuaspence added a subscriber: joshuaspence.
epriestley added a subscriber: epriestley.

I think I removed an array_filter() somewhere, probably during T7731.

My guess is that the Maniphest code is doing something like:

$to[] = $task->getOwnerPHID();

...which is empty for unassigned tasks.