logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37560] - Does not handle embedded xml correctly
Date Thu, 31 Aug 2006 21:03:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37560


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
          Component|chainsaw                    |Layout




------- Additional Comments From carnold@apache.org  2006-08-31 21:03 -------
Not Chainsaw's fault.  The serializer (I assume that log4j's XMLLayout) used to write the
sample document 
is naive and just dropped the NDC content into a CDATA section.  Unfortunately, the termination
of the 
CDATA section within the NDC content (the ]]>) prematurely ended the CDATA section added
by the 
serialization.  You can't nest CDATA sections.

Solutions would be to use a real XML serializer (like that provided by Xerces) or to make
the log4j 
serializer smarter and not depend on CDATA sections (that is, it would convert <, >
and & to &lt;, &gt; and 
&amp; and likely convert characters with code points greater than 127 to &#NNN; 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message