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

XMLFormatter should encode special characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta2
    • generic
    • generic



      Name: bsC130419 Date: 07/12/2001


      The version number of the JDK installed on my machine is irrelevant; I'm
      reporting based on your 1.4beta documentation.

      The JDK 1.4beta logging guide
      (http://java.sun.com/j2se/1.4/docs/guide/util/logging/overview.html)
      implies that XMLFormatter does not encode XML special characters.

      Specifically, in section 1.14, it says:

         Similarly, formatters such as the XMLFormatter do not attempt to
         protect themselves against nested log messages inside message strings.

      If XMLFormatter does not encode characters such as "<" and "&" in message
      strings when it writes them as XML, that is a serious bug.
      (Review ID: 127996)
      ======================================================================

            ghamiltosunw Graham Hamilton (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: