Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Log info message only if profile does not invoke custom handlers #197

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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