You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2011/09/06 11:20:14 UTC

[jira] [Updated] (LOG4NET-209) XmlLayout.FormatXml calls wrong overload of XmlWriter.WriteStartElement

     [ https://issues.apache.org/jira/browse/LOG4NET-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig updated LOG4NET-209:
-----------------------------------

    Affects Version/s:     (was: 1.2.11)
        Fix Version/s: 1.2.11

> XmlLayout.FormatXml calls wrong overload of XmlWriter.WriteStartElement
> -----------------------------------------------------------------------
>
>                 Key: LOG4NET-209
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-209
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.10
>         Environment: .NET 3.5 SP1
>            Reporter: Matthew Gabeler-Lee
>             Fix For: 1.2.11
>
>
> FormatXml calls WriteStartElement using prefixed element names (e.g. "log4net:event"), but it calls the overload of WriteStartElement that expects a local name.  Thus, if it writes to an xml writer that actually checks such things, it crashes.  Instead, it should call the overload that separates the prefix from the local name.  E.g.:  writer.WriteStartElement(this.m_prefix, this.m_elmEvent, null).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira