Page MenuHomePhabricator

"Email participants" functionality broken on beta
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Go to https://meta.wikimedia.beta.wmflabs.org
  • Create an event page, enable registration
  • Log in as a user with an email address set in your preferences
  • Register for the event you just created
  • Now log in as the organizer again
  • Go to Special:EventDetails for the event you created, open the participants tab
  • Click "Message all participants"
  • Enter message summary and body, submit the form

What happens?:
The participant does not receive the email.

What should have happened instead?:
The participant should receive the email.

Software version (skip for WMF-hosted wikis like Wikipedia):
master

Other information (browser name/version, screenshots, etc.):
I could find the following error on logstash:

TypeError: Typed property MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob::$to must be an instance of MailAddress, array used
from /srv/mediawiki/php-master/extensions/CampaignEvents/src/Messaging/EmailUsersJob.php(38)
#0 /srv/mediawiki/php-master/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Extension\CampaignEvents\Messaging\EmailUsersJob->__construct(MediaWiki\Title\Title, array)
#1 /srv/mediawiki/php-master/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /srv/mediawiki/php-master/includes/jobqueue/JobFactory.php(93): Wikimedia\ObjectFactory\ObjectFactory->createObject(string, array)
#3 /srv/mediawiki/php-master/extensions/EventBus/includes/JobExecutor.php(193): MediaWiki\JobQueue\JobFactory->newJob(string, array)
#4 /srv/mediawiki/php-master/extensions/EventBus/includes/JobExecutor.php(45): MediaWiki\Extension\EventBus\JobExecutor->getJobFromParams(array)
#5 /srv/mediawiki/rpc/RunSingleJob.php(77): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#6 {main}

Which is quite weird, because this was not detected by tests and phan, and I also cannot reproduce the issue locally.

Event Timeline

Change 957833 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Use native types for EmailUsersJob parameters

https://gerrit.wikimedia.org/r/957833

Change 957833 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Use native types for EmailUsersJob parameters

https://gerrit.wikimedia.org/r/957833

This is working now, but keep in mind that it might take a while for the email to be sent (it took ~5 minutes for me), depending on the size of the job queue.

vaughnwalters subscribed.
gmailprotonhotmail
Screenshot 2023-09-15 at 4.32.20 PM.png (1,712ร—466 px, 61 KB)
Screenshot 2023-09-15 at 4.30.48 PM.png (954ร—844 px, 72 KB)
Screenshot 2023-09-18 at 11.07.32 AM.png (804ร—524 px, 47 KB)
yahoooutlook
Screenshot 2023-09-15 at 4.51.37 PM.png (2,038ร—798 px, 204 KB)
{F37730573}

This is sending correctly, but noting for future testing it did take up until the next day for the outlook addresses (hotmail and outlook) to receive the notification. I am not sure if this is limitation of betacluster or of outlook/hotmail. Just something to note for future testing when this is on prod. Sending to product sign off.

This is sending correctly, but noting for future testing it did take up until the next day for the outlook addresses (hotmail and outlook) to receive the notification. I am not sure if this is limitation of betacluster or of outlook/hotmail. Just something to note for future testing when this is on prod. Sending to product sign off.

This shouldn't be address-dependent. Can you check the email headers and see if the email got stuck somewhere (and how long it took before being delivered)?

This is sending correctly, but noting for future testing it did take up until the next day for the outlook addresses (hotmail and outlook) to receive the notification. I am not sure if this is limitation of betacluster or of outlook/hotmail. Just something to note for future testing when this is on prod. Sending to product sign off.

This shouldn't be address-dependent. Can you check the email headers and see if the email got stuck somewhere (and how long it took before being delivered)?

Received: from IA1PR10MB6807.namprd10.prod.outlook.com (::1) by
 PH7PR10MB6404.namprd10.prod.outlook.com with HTTPS; Sat, 16 Sep 2023 05:52:15
 +0000
Received: from FR3P281CA0171.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a0::7) by
 IA1PR10MB6807.namprd10.prod.outlook.com (2603:10b6:208:429::14) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Fri, 15 Sep
 2023 20:44:45 +0000
Received: from VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com
 (2603:10a6:d10:a0:cafe::c3) by FR3P281CA0171.outlook.office365.com
 (2603:10a6:d10:a0::7) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21 via Frontend
 Transport; Fri, 15 Sep 2023 20:44:44 +0000
Authentication-Results: spf=none (sender IP is 185.15.56.18)
 smtp.mailfrom=beta.wmflabs.org; dkim=none (message not signed)
 header.d=none;dmarc=permerror action=none
 header.from=wikimedia.beta.wmflabs.org;compauth=fail reason=001
Received-SPF: None (protection.outlook.com: beta.wmflabs.org does not
 designate permitted sender hosts)
Received: from mx-out03.wmcloud.org (185.15.56.18) by
 VI1EUR03FT014.mail.protection.outlook.com (100.127.145.17) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.6792.21 via Frontend Transport; Fri, 15 Sep 2023 20:44:43 +0000
X-IncomingTopHeaderMarker:
 OriginalChecksum:5EE9FA18CAD9D2A5E01D0DD913148B56A8C93F158FF90C9FF2AF0A22D41EDECA;UpperCasedChecksum:0863259C44412D322FFDD2B6F1AE52588E544EE8E07C1FA6CE95E85B86572FAD;SizeAsReceived:1107;Count:13
Received: from deployment-jobrunner04.deployment-prep.eqiad1.wikimedia.cloud ([172.16.3.153]:35166)
	by mx-out03.wmcloud.org with esmtp (Exim 4.92)
	(envelope-from <wiki-enwiki-25l4-s11oai-5JK6v5XpYWZhMeQx@beta.wmflabs.org>)
	id 1qhFgA-0006f9-UN
	for f9q83j4f98amsdcvmawec@hotmail.com; Fri, 15 Sep 2023 20:44:42 +0000
Received: from www-data by deployment-jobrunner04.deployment-prep.eqiad1.wikimedia.cloud with local (Exim 4.92)
	(envelope-from <wiki-enwiki-25l4-s11oai-5JK6v5XpYWZhMeQx@beta.wmflabs.org>)
	id 1qhFgA-0005Pv-Sq
	for f9q83j4f98amsdcvmawec@hotmail.com; Fri, 15 Sep 2023 20:44:42 +0000
To: "Vdubshotmail" <f9q83j4f98amsdcvmawec@hotmail.com>
Subject: test
From: "Beta Wikipedia" <wiki@wikimedia.beta.wmflabs.org>
Reply-To: "VWalters" <vwalters@wikimedia.org>
Date: Fri, 15 Sep 2023 20:44:42 +0000
Message-ID: <enwiki.6504c23ad665b1.08093807@en.wikipedia.beta.wmflabs.org>
X-Mailer: MediaWiki mailer
List-Unsubscribe: <https://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences>
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 8bit
X-IncomingHeaderCount: 13
Return-Path: wiki-enwiki-25l4-s11oai-5JK6v5XpYWZhMeQx@beta.wmflabs.org
X-MS-Exchange-Organization-ExpirationStartTime: 15 Sep 2023 20:44:43.9890
 (UTC)
X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit
X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000
X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit
X-MS-Exchange-Organization-Network-Message-Id:
 5338151c-d6e3-4312-1c2f-08dbb62c9784
X-EOPAttributedMessage: 0
X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0
X-MS-Exchange-Organization-MessageDirectionality: Incoming
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic:
 VI1EUR03FT014:EE_|IA1PR10MB6807:EE_|PH7PR10MB6404:EE_
X-MS-Exchange-Organization-AuthSource:
 VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-UserLastLogonTime: 11/23/2022 3:46:41 AM
X-MS-Office365-Filtering-Correlation-Id: 5338151c-d6e3-4312-1c2f-08dbb62c9784
X-MS-DelayedDelivery: true
X-MS-Exchange-EOPDirect: true
X-Sender-IP: 185.15.56.18
X-SID-PRA: WIKI@WIKIMEDIA.BETA.WMFLABS.ORG
X-SID-Result: NONE
X-MS-Exchange-Organization-PCL: 2
X-MS-Exchange-Organization-SCL: 5
X-Microsoft-Antispam: BCL:0;
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 20:44:43.9578
 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 5338151c-d6e3-4312-1c2f-08dbb62c9784
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-AuthSource: VI1EUR03FT014.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: Internet
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg:
 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB6807
X-MS-Exchange-Transport-EndToEndLatency: 09:07:31.5992503
X-MS-Exchange-Processed-By-BccFoldering: 15.20.6792.022
X-Microsoft-Antispam-Mailbox-Delivery:
	ucf:0;jmr:0;ex:0;psp:0;auth:0;dest:J;OFR:SpamFilterAuthJ;ENG:(5062000305)(920221119095)(90000117)(920221120095)(90010023)(91010020)(91040095)(9050020)(9100341)(944500132)(2008001134)(4810010)(4910033)(10005027)(9610028)(9540006)(10160021)(9320005)(9245025)(120001);RF:JunkEmail;
X-Message-Info:
	6hMotsjLow+T/Swulcge57UEGnqCttKEMPTmee/VF5RoXGWX8EnIbM32REdyBYdPlX6HhEveh+jbUQHzYo6Gz2XJdHeWnHDOUn4tFTyX8OOtBMRona+0wzno6g70Sw9jWCRqEcLEi2fhXPH+fydD+aoKeI/6VGSp142BGte2fnyat+FYqMbmSCTZOhrF1sne7oIEYvxzetcQFiZ7pnR71g==
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Microsoft-Antispam-Message-Info:
	=?utf-8?B?Q2ZFRVlHRUJpbVNUZUU0aE5Idk1Eb1FwQktLWHlDbGdOeFVTdFJaT1JkOW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Iem9TbVpVTEVuMnZWWk1aM0VPUDlY?=
 =?utf-8?B?ckNEdVlMVittQStwOUZRdUdRaFU4WG80M1pnNEk0ekFFMUNIOE5WTmZ6bk9v?=
 =?utf-8?B?WDVESG9KUlNlaHZpKzZaY3RINVc1MEhJOWNDVzgvZ0JrTmEvN2dBOHNsNHhq?=
 =?utf-8?B?Y2xHUGhQVm9uWjRQajVMOEk1TUova0dxeVVsc05VUmltdlZ2ZjdrSTZOcEJp?=
 =?utf-8?B?NU81dGZ3V1piQk5GY1FIRnVaaFl5dTUyQUpNU3NVK0RmM2h2d3M4Y2JyYzlV?=
 =?utf-8?B?Qng2Tzdkb2Q1SXpBbEdNTWcxc25NOEFXNHR5ZUhKTzY4TUNnK1FONlFxYnRx?=
 =?utf-8?B?R0dUNjhoQis5N3RZanE0NVdSaDNBeXByY1NhNVlDRnlpcmdLbFV0V2hYRHZW?=
 =?utf-8?B?Qzgvc3BNMzNGQWpjdms1V1lDZWtJQ1IxcVV2Q2pabGdOZmNkUUs0OG4zZE9r?=
 =?utf-8?B?UVY5Y2RSR0QzelN0MWVkL0MxbUVaSXFhVng3RXlMRmRLNzBQVXhKNG1mQ3Bo?=
 =?utf-8?B?OWhkOVgyRjRJWC80dGxVcWtzSGFENHZDcGxWQ2UwaW9JSmVlVHRqcUlNcjN2?=
 =?utf-8?B?cS9wV1lQeHdoQnVYWHZ5ZC82TW0rNi82VC8xN0ZYUVNhRUdVbFhxREJkdmxy?=
 =?utf-8?B?V1B0djUva1RGcDdTM0E9PQ==?=
MIME-Version: 1.0

test here is a test

@Daimona so yeah, looks like X-MS-Exchange-Transport-EndToEndLatency: 09:07:31.5992503 is about 9 hours?

This is sending correctly, but noting for future testing it did take up until the next day for the outlook addresses (hotmail and outlook) to receive the notification. I am not sure if this is limitation of betacluster or of outlook/hotmail. Just something to note for future testing when this is on prod. Sending to product sign off.

This shouldn't be address-dependent. Can you check the email headers and see if the email got stuck somewhere (and how long it took before being delivered)?

Tested this again just now and there was no significant lag in outlook or hotmail this time.

ifried subscribed.

Since the Outlook/Hotmail issue isn't consistently reproducible, we can just see if it pops up again. Meanwhile, I'm marking this ticket as Done as the bug is now resolved.