[Yanel-commits] rev 22482 - public/yanel/trunk/src/core/java/org/wyona/yanel/core/map

michi at wyona.com michi at wyona.com
Tue Feb 6 22:15:40 CET 2007


Author: michi
Date: 2007-02-06 22:15:38 +0100 (Tue, 06 Feb 2007)
New Revision: 22482

Modified:
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfiguration.java
Log:
space problem fixed

Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfiguration.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfiguration.java	2007-02-06 21:11:07 UTC (rev 22481)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmConfiguration.java	2007-02-06 21:15:38 UTC (rev 22482)
@@ -22,6 +22,7 @@
 import java.lang.IllegalAccessException;
 import java.lang.InstantiationException;
 import java.net.URL;
+import java.net.URLDecoder;
 import java.util.LinkedHashMap;
 import java.util.Properties;
 
@@ -79,7 +80,8 @@
         Properties props = new Properties();
         try {
             props.load(propertiesURL.openStream());
-            File propsFile = new File(propertiesURL.getFile());
+            // use URLDecoder to avoid problems when the filename contains spaces, see http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5165
+            File propsFile = new File(URLDecoder.decode(propertiesURL.getFile()));
 
             realmsConfigFile = new File(props.getProperty("realms-config"));
             if (!realmsConfigFile.isAbsolute()) {




More information about the Yanel-commits mailing list