Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8505

Missed CamelSchematronValidationStatus header

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        Activity

          People

            njiang Willem Jiang
            cp123 Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: