You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sergey (JIRA)" <ji...@apache.org> on 2015/03/18 11:49:38 UTC

[jira] [Created] (CAMEL-8505) Missed CamelSchematronValidationStatus header

Sergey  created CAMEL-8505:
------------------------------

             Summary: Missed CamelSchematronValidationStatus header
                 Key: CAMEL-8505
                 URL: https://issues.apache.org/jira/browse/CAMEL-8505
             Project: Camel
          Issue Type: Bug
          Components: camel-schematron
            Reporter: Sergey 


CamelSchematronValidationStatus header missed somewhere in this method of SchematronProducer class:

{code:java}
    /**
     * 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);
        }
    }
{code}

status variable value is SUCCESS here, but right after:

{code:xml}
            <to uri="schematron:schematron/dogs.sch" />
{code}

there is no such header - only CamelSchematronValidationReport present.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)