XStream
  1. XStream
  2. XSTR-439

PrettyPrintWriter does not correctly check text values

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.3, 1.2.2
    • Fix Version/s: 1.3
    • Component/s: IO
    • Labels:
      None

      Description

      PrettyPrintWriter.writeText escapes some characters but not all. If the text for example
      contains vertical tabulators (0B), the generated xml is invalid.

      XML1.0 only allows control characters 09, 0A, 0D. All others should cause an exception.
      The PrettyPrintWriter simply writes them to the output stream (at least it should perform escaping).

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Sven Steiniger
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: