mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(ses): allow SendRawEmail without Source when MIME From is present (#800)
* fix(ses): allow SendRawEmail without Source when MIME From is present AWS SES SendRawEmail treats the Source parameter as optional — when absent, the From: header in the raw MIME message acts as the source identity. A previous validation pass added a null/blank check that rejected such requests, breaking the AWS-spec fallback and surprising applications migrating from real AWS or LocalStack. The downstream SmtpRelay path already falls back to the MIME From header when source is null, so removing the validation is sufficient. * test(ses): use unique @Order value for new SendRawEmail regression test The new sendRawEmail_withoutSource_acceptedWhenMimeFromPresent test was inserted with @Order(20), which conflicted with an existing test later in the same class. With OrderAnnotation, equal order values make execution order ambiguous. Bump it past the current max (28) to keep ordering deterministic.
This commit is contained in:
1 parent
0d8c6f8bd7
commit
15db990b39
2 files changed
+20
-3
No files matched your search
@@ -183,9 +183,6 @@ public class SesService {
|
||||
}
|
||||
|
||||
public String sendRawEmail(String source, List<String> destinations, String rawMessage, String region) {
|
||||
if (source == null || source.isBlank()) {
|
||||
throw new AwsException("InvalidParameterValue", "Source email is required.", 400);
|
||||
}
|
||||
if (rawMessage == null || rawMessage.isBlank()) {
|
||||
throw new AwsException("InvalidParameterValue", "RawMessage.Data is required.", 400);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user