Skip to content

Commit 2398d6c

Browse files
Alexandru-Constantin Bledeagregturn
authored andcommitted
SWS-989 - Skip validation if validation actions is empty or NO_SECURITY
1 parent 20de2e1 commit 2398d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ protected void validateMessage(SoapMessage soapMessage, MessageContext messageCo
643643
logger.debug("Validating message [" + soapMessage + "] with actions [" + validationActions + "]");
644644
}
645645

646-
if (validationActionsVector.contains(WSConstants.NO_SECURITY)) {
646+
if (CollectionUtils.isEmpty(validationActionsVector) || validationActionsVector.contains(WSConstants.NO_SECURITY)) {
647647
return;
648648
}
649649

0 commit comments

Comments
 (0)