Author: markt
Date: Sun Feb 27 13:19:22 2011
New Revision: 1075050
URL: http://svn.apache.org/viewvc?rev=1075050&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=31027
Trim whitespace from names and values obtained from
$CATALINA_BASE/conf/catalina.properties to avoid hard to diagnose errors on
startup.
Modified:
tomcat/trunk/java/org/apache/catalina/startup/CatalinaProperties.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/startup/CatalinaProperties.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/CatalinaProperties.java?rev=1075050&r1=1075049&r2=1075050&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/CatalinaProperties.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/startup/CatalinaProperties.java Sun
Feb 27 13:19:22 2011
@@ -140,7 +140,9 @@ public class CatalinaProperties {
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());
}
}
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1075050&r1=1075049&r2=1075050&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Sun Feb 27 13:19:22 2011
@@ -62,6 +62,11 @@
(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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]