Skip to content

Commit

Permalink
Added change from
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 26, 2024
1 parent 3c68593 commit 4220586
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public static void parseAS4Message (@Nonnull final IAS4IncomingAttachmentFactory
final IMimeType aPlainContentType = aContentType.getCopyWithoutParameters ();

// Fallback to global dumper if none is provided
final IAS4IncomingDumper aRealIncomingDumper = aIncomingDumper != null ? aIncomingDumper : AS4DumpManager
.getIncomingDumper ();
final IAS4IncomingDumper aRealIncomingDumper = aIncomingDumper != null ? aIncomingDumper
: AS4DumpManager.getIncomingDumper ();

Document aSoapDocument = null;
ESoapVersion eSoapVersion = null;
Expand Down Expand Up @@ -467,7 +467,8 @@ private static void _processSoapHeaderElements (@Nonnull final SOAPHeaderElement
aHeader.getNode (),
aIncomingAttachments,
aState,
aProcessingErrorMessagesTarget).isSuccess ())
aProcessingErrorMessagesTarget)
.isSuccess ())
{
// Mark header as processed (for mustUnderstand check)
aHeader.setProcessed (true);
Expand Down Expand Up @@ -564,10 +565,13 @@ private static void _decompressAttachments (@Nonnull final ICommonsList <WSS4JAt
// href
final Ebms3PartInfo aPartInfo = CollectionHelper.findFirst (aUserMessage.getPayloadInfo ().getPartInfo (),
x -> x.getHref () != null &&
x.getHref ().contains (sAttachmentContentID));
(x.getHref ().equals (sAttachmentContentID) ||
x.getHref ()
.equals (MessageHelperMethods.PREFIX_CID +
sAttachmentContentID)));
if (aPartInfo != null && aPartInfo.getPartProperties () != null)
{
// Find MimeType property
// Find "MimeType" property
final Ebms3Property aProperty = CollectionHelper.findFirst (aPartInfo.getPartProperties ().getProperty (),
x -> x.getName ()
.equalsIgnoreCase (MessageHelperMethods.PART_PROPERTY_MIME_TYPE));
Expand Down

0 comments on commit 4220586

Please sign in to comment.