BUG: Webhook regression after #62 — Ombi handler broken due to isReplay() signature change #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related Issues:
Description
After the changes in #62 (commit
593ad7967), webhooks are no longer working reliably. Specifically:This is a regression introduced by an incomplete update when the
isReplay()function signature was changed.Root Cause
In commit
593ad7967(fix for #62), theisReplay()function was updated from 3 parameters to 4 parameters:Before (v1.7.31):
After (develop):
However, the Ombi handler was never updated.
Current Broken Code (Ombi handler in
server/routes/webhook.js):Problems:
${requestId}-${eventDate}) instead of a propereventDate.contentIdbecomesundefined, breaking the new replay key format:eventType:instanceName:contentId:eventDateThis causes malformed replay keys, incorrect duplicate detection, and failures in the Ombi webhook path (including the test simulation endpoint).
Investigation Findings
contentIdextraction (downloadIdorseries.id/movie.id)./api/ombi/webhook/testendpoint (inserver/routes/ombi.js) internally POSTs to/api/webhook/ombi, so it is directly affected by this bug.isReplay()with the wrong signature.Impact
How to Resolve (Exact Fix)
Update the Ombi handler in
server/routes/webhook.jsto use the newisReplay()signature consistently with Sonarr/Radarr:Recommended Patch:
Replace the current Ombi replay check (around line 819) with:
Full Context (recommended replacement block):
Suggested Commit Message
Suggested Labels
Kind/BugPriority: HighArea/WebhooksRegressionCross-References
This is a quick, low-risk fix. Once applied, Ombi webhooks and test buttons should work correctly again.
Resolved in commit
a4d398e.