Skip to content

Commit

Permalink
Merge pull request #197 from problemzebra2/ping_spi_logging_fix
Browse files Browse the repository at this point in the history
Log info message only if profile does not invoke custom handlers
  • Loading branch information
phax authored Dec 4, 2023
2 parents af5fa2e + b8bf9cb commit d442f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ public static IAS4MessageState processEbmsMessage (@Nonnull @WillNotClose final

final boolean bIsPingMessage = AS4Helper.isPingMessage (aPMode);
aState.setPingMessage (bIsPingMessage);
if (bIsPingMessage)
if (bIsPingMessage && (aProfile == null || !aProfile.isInvokeSPIForPingMessage()))
LOGGER.info ("Received an AS4 Ping message - meaning it will NOT be handled by the custom handlers.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ private IAS4ResponseFactory _handleSoapMessage (@Nonnull final HttpHeaderMap aHt
// * No errors so far (sign, encrypt, ...)
// * Valid PMode
// * Exactly one UserMessage or SignalMessage
// * No ping/test message
// * If ping/test message then only if profile should invoke SPI
// * No Duplicate message ID
boolean bCanInvokeSPIs = true;
if (aErrorMessagesTarget.isNotEmpty ())
Expand Down

0 comments on commit d442f97

Please sign in to comment.