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

dumpModelAsXml can return invalid XML namespace xmlns:xmlns

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.18.0
    • Fix Version/s: 2.18.3, 2.19.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Seems I introduced a bug when implementing CAMEL-10509.

      If we're processing a namespace prefix of 'xmlns' then obviously we should not prefix it with the same value. But currently this is allowed and a namespace prefix of 'xmlns:xmlns' is added to the <routes> element. This can mean that the output from ModelHelper.dumpModelAsXml is invalid.

      However, I can only reproduce the problem on Karaf where the routes use xpath expressions. Some how with other platforms & scenarios the 'xmlns:xmlns' value is being ignored and never makes it into the dumpModelAsXml output.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamesnetherton James Netherton
                Reporter:
                jamesnetherton James Netherton
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: