logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Finker"<leon...@gmail.com>
Subject "sys" properties lookup regression
Date Thu, 08 Sep 2016 21:48:29 GMT
Hi,

Testing master branch.. We have the following xml configuration:
..
<Property name="additionalProp"></Property>
..
<RegexFilterEx regex="${sys:additionalProp}" onMatch="DENY"
                onMismatch="ACCEPT" />
-- or you can have <Property name="additionalProp" /> doesn't matter for the issue

And assume there is no 'additionalProp' System property set.  On master branch, ${sys:additionalProp}
doesn't get resolved and remains as literal ${sys:additionalProp}. It's supposed to default
to xml specified props, no? This worked up to 2.6.3.

But if I change the xml prop to be:
<Property name="additionalProp" value="" /> 

Then ${sys:additionalProp} fallsback to xml defined prop and resolves to empty string.



---------------------------------------------------------------------
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