Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-920

de.pdark.decentxml.XMLParseException: Illegal character in attribute value: '>'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0
    • 7.1.0
    • Camel Editor
    • None

      If a route contains a <log message=">>> this is a message with arrows in it"/> will throw an "invalid character in attribute" exception. Replacing it with > fixes the issue, but technically I think the XML is correct and it does work fine that way in plain Camel.

      For example: if you open the project https://github.com/FuseByExample/camel-persistence-part2 and want to visualize the camel route ./route-one-tx-manager/src/main/resources/META-INF/spring/camelContext.xml it produces an error dialog and the following log entry:

      Failed to load Camel mode: de.pdark.decentxml.XMLParseException: Line 68, column 31: Illegal character in attribute value: '>'
      Line 68: <log message=">>> Incident created in queue : ${body}"/>

      The W3C recommandation (http://www.w3.org/TR/REC-xml/#d0e888) states that an attribute value exists of:

      AttValue	   ::=   	'"' ([^<&"] | Reference)* '"' |  "'" ([^<&'] | Reference)* "'"
      

            lheinema@redhat.com Lars Heinemann
            wverreydt_jira Wim Verreydt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: