felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r698228 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
Date Tue, 23 Sep 2008 16:36:49 GMT
Author: rickhall
Date: Tue Sep 23 09:36:49 2008
New Revision: 698228

URL: http://svn.apache.org/viewvc?rev=698228&view=rev
Log:
Applied patch to decode reference URLs. (FELIX-731)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java?rev=698228&r1=698227&r2=698228&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
(original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
Tue Sep 23 09:36:49 2008
@@ -19,6 +19,7 @@
 package org.apache.felix.framework.cache;
 
 import java.io.*;
+import java.net.URLDecoder;
 
 import org.apache.felix.framework.Logger;
 import org.apache.felix.framework.util.ObjectInputStreamX;
@@ -1040,6 +1041,9 @@
                     throw new IOException("Reference URLs can only be files: " + location);
                 }
 
+                // Decode any URL escaped sequences.
+                location = URLDecoder.decode(location);
+
                 // Make sure the referenced file exists.
                 File file = new File(location.substring(FILE_PROTOCOL.length()));
                 if (!BundleCache.getSecureAction().fileExists(file))



Mime
View raw message