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

XmlRouteParser does not handle usage of xml namespace prefix for camel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.22.0
    • 2.22.1, 2.23.0
    • tooling
    • None
    • Unknown

    Description

      for instance with this file content, using the org.apache.camel.parser.XmlRouteParser.parseXmlRouteEndpoints(InputStream, String, String, List<CamelEndpointDetails>) method will not find the endpoint

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
      <camel:camelContext id="camel" xmlns:camel="http://camel.apache.org/schema/spring">
      <camel:endpoint uri="timer:timerName?delay=p"/>
      <camel:route id="a route">
      <camel:from id="_from1" uri="timer:timerName?delay=1000"/>
      <camel:to id="_to1" uri="direct:drink"/>
      </camel:route>
      </camel:camelContext>
      </beans>

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              apupier Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: