Skip to content

Commit 98fa1c7

Browse files
xxxyyyzjlink
andauthored
CAMEL-22737 Exception on unsupported content type (#20493)
* Throw an AS2DecryptionException when an entity contains an unsupported content type * throw exception from correct switch case * Fix indentation --------- Co-authored-by: jlink <juergen.link@gmail.com>
1 parent 9a055c6 commit 98fa1c7

File tree

1 file changed

+1
-1
lines changed
  • components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity

1 file changed

+1
-1
lines changed

components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/EntityParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ public static MimeEntity parseEntityBody(
888888
}
889889
break;
890890
default:
891-
break;
891+
throw new AS2DecryptionException("Unsupported entity content type: " + entityContentType);
892892
}
893893

894894
return entity;

0 commit comments

Comments
 (0)