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

camel-xslt: setting resultHandlerFactory via URI is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.6, 3.11.2, 3.12.0
    • Component/s: camel-xslt
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In XsltEndpoint.java,  createXsltBuilder() the resultHandlerFactory is set if configured.

      However, further down in the method it is overwritten because of

      configureOutput(xslt, output.name());

      Since output is an enum which cannot be set to "" or null via Spring/XML, there is no way around this except for extending the Endpoint class and overriding the behavior.

      Suggested solution is setting the result handler factory after configureOutput, or skipping configureOutput in case of a custom result handler factory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rikvb Rik van Ballegooijen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: