Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6420953

Zephyr doesn't escape namespace URIs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: