Issue Details (XML | Word | Printable)

Key: LOGCXX-60
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: Curt Arnold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

XML layout can be mismatched with document encoding

Created: 11/Feb/05 02:06 PM   Updated: 27/Jan/08 02:39 AM
Return to search
Component/s: Layout
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Issue Links:
dependent
 

Resolution Date: 27/Jan/08 02:39 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Curt Arnold added a comment - 27/Jan/08 02:39 AM
Committed changes in rev 615546 that port enhancements from log4j to log4cxx. The changes properly escape special characters (", &, < and >) in many additional fields that would previous result in an invalid XML entity.

log4j has decided to not attempt to address encoding mismatch, you should use a UTF-8 or UTF-16 encoding when using an XMLLayout to avoid getting mangled characters.