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 47713] New: SMTPAppender system properties propagation issue
Date Thu, 20 Aug 2009 10:11:20 GMT

           Summary: SMTPAppender system properties propagation issue
           Product: Log4j
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: apache-issues@plakto.com

--- Comment #0 from Jesper <apache-issues@plakto.com> 2009-08-20 03:11:19 PDT ---
The properties passed in from command line (via -D) is not available to the
underlying java mail implementation.

The issue is that com.sun.mail.util.SocketFetcher uses
com.sun.mail.util.PropUtil to get properties, but this class uses
properties.get (vs. getProperty), where the properties added from SMTPAppender
is added via new Properties(defaultProps). 

The effect is that PropUtil->properties.get does not check the defaultProps for
values and hence won't find any added from SMTPAppender.

Of course you could argue the issue is with com.sun.mail.util.PropUtil..

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

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

View raw message