XMLFormatter should encode special characters

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: