Campaign with a missing segment was sent to all contacts #9
Labels
No labels
bug
dependencies
documentation
feature
phase-summary
security
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vmanne-poc/Postak#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Problem: when a campaign's
segmentIdpointed to a segment that couldn't be found in the project, recipient resolution fell back to every active contact, so a targeted campaign could go to the whole list.Fix:
SegmentsService.resolveRecipientsthrows 400 instead, and it runs before the campaign is claimed for sending so the campaign isn't left stuck in SENDING. Deleting a segment used by a draft or scheduled campaign is refused with 409.Tests: e2e "sends a campaign only to its segment" and "validates campaign updates and protects segments in use".
Fixed in
v0.7.0.