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 22894] - Single backslash not accepted in File param value
Date Fri, 11 Feb 2005 19:21:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=22894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22894


tom.caulkins@sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carnold@apache.org
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From tom.caulkins@sas.com  2005-02-11 20:21 -------
Curt,

Thanks for fixing this bug in log4j.

I followed the link to the log4cxx bug you also fixed, and noted that you 
report "to preserve compatibility with existing configurations, 
FileAppender::setOption will eliminate double backslashes from any specified 
file name".

This seems reasonable.  I see that you applied this compensation to log4j, too.

One special case will be impacted negatively by this: when a UNC-type file name 
is used, i.e. \\mymachine.apache.org\mydir\myfile.log.  My work-around for the 
exiting log4j bug includes replacing 2 leading backslashes with four ( so log4j 
can turn them back into two ).

Perhaps you could consider handling this special case, too, by not turning 2 
leading backslashes into one.  Note that a file name that begins with a single 
backslash is not a valid file name, so backward compatibility would not be 
compromised by adding this additional fix ( i.e. no one was using double 
backslashes in that position as a workaround to the bug ).  Without the 
additional fix, the above valid UNC file name will be rendered invalid.

I am marking this bug re-opened while you consider my request.

Thanks,
Tom



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

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


Mime
View raw message