Skip to content

Commit fc2208e

Browse files
committed
Fix PII scrubbing for untyped standalone attachments
Use unwrap_or_default() to treat attachments without an explicit AttachmentType header as AttachmentType::Attachment, ensuring they are correctly routed to the StandaloneAttachments processing group for PII scrubbing instead of falling through to the Standalone group.
1 parent b22e064 commit fc2208e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relay-server/src/services/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ impl ProcessingGroup {
380380
if !envelope.items().any(Item::creates_event) {
381381
let standalone_attachments = envelope.take_items_by(|i| {
382382
i.requires_event()
383-
&& matches!(i.attachment_type(), Some(AttachmentType::Attachment))
383+
&& i.attachment_type().unwrap_or_default() == AttachmentType::Attachment
384384
});
385385
if !standalone_attachments.is_empty() {
386386
grouped_envelopes.push((

0 commit comments

Comments
 (0)