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/12 13:01:09 UTC
[jira] [Resolved] (LOG4NET-310) EventLogAppender's ActivateOptions
throws SecurityException on Vista/Win2k3 and later when not run as
administrator
[ https://issues.apache.org/jira/browse/LOG4NET-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved LOG4NET-310.
------------------------------------
Resolution: Fixed
Test passes now (by using winlogon as EventSource) and error handling and documentation have been improved.
> EventLogAppender's ActivateOptions throws SecurityException on Vista/Win2k3 and later when not run as administrator
> -------------------------------------------------------------------------------------------------------------------
>
> Key: LOG4NET-310
> URL: https://issues.apache.org/jira/browse/LOG4NET-310
> Project: Log4net
> Issue Type: Bug
> Affects Versions: 1.2.10
> Reporter: Stefan Bodewig
> Fix For: 1.2.11
>
>
> ActivateOptions uses EventLog.SourceExists which throws an exception of the source hasn't been found in any of the logs the user was allowed to read and there are others (in particular "Security") that the user is not allowed to access.
> This is the reason of one of the unit test errors I reported in LOG4NET-301
> Even if the code catches the exception and assumes the source doesn't exist this won't help as EventLog.CreateEventSource must not be called without administrator privileges either.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira