Zephyr doesn't escape namespace URIs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 1.0
    • Component/s: xml
    • b84
    • generic
    • generic

      The following sequence causes Zephyr to produce a non well-formed XML document:

              w.writeStartDocument();
              w.writeStartElement("foo");
              w.writeDefaultNamespace(">:Testing escape:<\"'");
              w.writeEndElement();

      output:

              <?xml version="1.0" ?><foo xmlns=">:Testing escape:<"'"></foo>

      Namespace URIs need to be escaped too, just like attribute values.
      See zephyr/tests/XMLStreamWriter/AttributeEscapeTest for the unit test that produces this error.

            Assignee:
            Jeff Suttor (Inactive)
            Reporter:
            Kohsuke Kawaguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: