Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-60

XML layout can be mismatched with document encoding

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Layout
    • Labels:
      None

      Description

      The XMLLayout acts independently of the document encoding and a mixmatch can easily result in invalid files. To prevent the issue, it would be beneficial if all characters greater than 0x7F be represented using character entities.

      In addition, the current XMLLayout would appear to not successfully handle logger names and other fields that contain special characters like <, >, ", etc. I believe that these same weaknesses affect log4j.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                carnold@apache.org Curt Arnold
                Reporter:
                carnold@apache.org Curt Arnold
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: