SecurityException thrown in LogicalThreadContextProperties GetProperties
------------------------------------------------------------------------
Key: LOG4NET-79
URL: http://issues.apache.org/jira/browse/LOG4NET-79
Project: Log4net
Type: Bug
Components: Core
Versions: 1.2.10
Reporter: Nicko Cadell
Assigned to: Nicko Cadell
Fix For: 1.2.11
SecurityException thrown in LogicalThreadContextProperties GetProperties
The LogicalThreadContext stores its properties in the CallContext. The
CallContext methods GetData ans SetData have a LinkDemand for the
SecurityPermissionFlag.Infrastructure. If the calling code does not have this
permission a SecurityException is generated when the
LogicalThreadContextProperties.GetProperties method is JITed. The calling code
does not have this psermission if it is in the Medium trust zone.
The exception causes the LoggingEvent to fail to compose its properties, and
therefore log4net fails to log any events. The exception is eventualy caught
and does not leak into the calling application.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira