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

camel-xslt: setting resultHandlerFactory via URI is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.6, 3.11.2, 3.12.0
    • camel-xslt
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: