Trim whitespace from names and values obtained from $CATALINA_BASE/conf/catalina.properties to avoid hard to diagnose errors on startup.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1075050 13f79535-47bb-0310-9956-
ffa450edef68
String name = (String) enumeration.nextElement();
String value = properties.getProperty(name);
if (value != null) {
- System.setProperty(name, value);
+ // Remove leading/trailing whitespace as that can lead to hard
+ // to diagnose failures
+ System.setProperty(name.trim(), value.trim());
}
}
(markt)
</add>
<fix>
+ <bug>31027</bug>: Trim whitespace from names and values obtained from
+ <code>$CATALINA_BASE/conf/catalina.properties</code> to avoid hard to
+ diagnose errors on startup. (markt)
+ </fix>
+ <fix>
<bug>48863</bug>: Better logging when specifying an invalid directory
for a class loader. Based on a patch by Ralf Hauser. (markt)
</fix>