You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2009/08/20 12:11:20 UTC
DO NOT REPLY [Bug 47713] New: SMTPAppender system properties
propagation issue
https://issues.apache.org/bugzilla/show_bug.cgi?id=47713
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 <ap...@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
DO NOT REPLY [Bug 47713] SMTPAppender system properties propagation
issue
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47713
Curt Arnold <ca...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Curt Arnold <ca...@apache.org> 2009-08-23 18:57:54 PDT ---
Thanks for the comments, but not quite following the train of thought.
I can guess, but can you describe the problem that you are encountering.
Something like, I can specify the SMTPPassword in a log4j.xml file, but when I
try to specify it through -D....=password it is not recognized.
Do you have a proposed remedy or patch?
Does this occur with the current SVN HEAD or a earlier version? If not SVN
HEAD, could you check with the SVN HEAD?
--
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