You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving http-header request, and some of the mandatory headers is missing, so that created message will not be valid, this check should happen in SenderParseReceivedDataProcessorHttpHeader.
Now, message will be created, and in DapsService error will occur.
We should check sooner if message is valid. For that purpose, following code can be used, after we create message from http-headers.
When receiving http-header request, and some of the mandatory headers is missing, so that created message will not be valid, this check should happen in SenderParseReceivedDataProcessorHttpHeader.
Now, message will be created, and in DapsService error will occur.
We should check sooner if message is valid. For that purpose, following code can be used, after we create message from http-headers.
javax.validation.* package
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
Validator validator = factory.getValidator();
Set<ConstraintViolation> violations = validator.validate(message);
if(!violations.isEmpty()) {
logger.error("IDS Message validation failed");
message = null;
}
Check if we can create validator only once.
Update test for this processor to check if logic is valid.
The text was updated successfully, but these errors were encountered: