Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.14.0
-
None
-
Unknown
Description
CamelSchematronValidationStatus header missed somewhere in this method of SchematronProducer class:
/** * Sets validation report and status * * @param exchange * @param report * @param status */ private void setValidationReport(Exchange exchange, String report, String status) { // if exchange pattern is In and Out set details on the Out message. Map<String, Object> headers = new HashMap<String, Object>(); headers.put(Constants.VALIDATION_STATUS, status); headers.put(Constants.VALIDATION_REPORT, report); exchange.getOut().setHeader(Constants.VALIDATION_REPORT, report); if (exchange.getPattern().isOutCapable()) { exchange.getOut().setHeaders(exchange.getIn().getHeaders()); exchange.getOut().getHeaders().putAll(headers); } else { exchange.getIn().getHeaders().putAll(headers); } }
status variable value is SUCCESS here, but right after:
<to uri="schematron:schematron/dogs.sch" />
there is no such header - only CamelSchematronValidationReport present.