Page MenuHomePhabricator

contact_id in email link having contact_id=%%CONTACTID%% instead of contact_id=1234 is breaking the queues
Closed, ResolvedPublic

Event Timeline

Cstone renamed this task from contact_id in email link having %%CONTACTIY%% instead of contact_id=1234 is breaking the queues to contact_id in email link having contact_id=%%CONTACTID%% instead of contact_id=1234 is breaking the queues.Dec 23 2025, 8:02 PM
AKanji-WMF triaged this task as Medium priority.Jan 5 2026, 9:34 PM
AKanji-WMF moved this task from Triage to Chaos Crew Backlog on the Fundraising-Backlog board.
AKanji-WMF subscribed.

While this instance was an example of user error, FR-Tech talked about how we could expose error messaging or get ahead of this kind of error so as not to impact the queues or donors (i.e. ignore contact ID/hash but accept donation mapping to target contact).

Slack thread with context: https://wikimedia.slack.com/archives/C045WH0QYS2/p1766481615347729

Ultimately we want to ensure donations get into Civi, but also catch and flag any badly formatted email params.

@Damilare so maybe we should create a new Phab for showing a notification on the payments screen when token placeholders are found in the URL? Wording would need to explain the problem to testers and still let donors know they can continue with their donation. Then against this ticket we could do the work to discard bad values before they break the import to CIviCRM. Potentially we would want to do this in DonationInterface similar to how we validate donation amounts.

Ok, misread the comment, I'd add the feature to discard the bad values on the import in Civi.

Change #1227803 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[wikimedia/fundraising/crm@master] Ensure Donation consumer does not break when template strings get into the message contact_id parameters

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

Change #1227803 merged by Eileen:

[wikimedia/fundraising/crm@master] Ensure Donation consumer does not break when template strings get into the message contact_id parameters

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

Damilare set Final Story Points to 2.