geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r901105 - /geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java
Date Wed, 20 Jan 2010 08:43:56 GMT
Author: djencks
Date: Wed Jan 20 08:43:46 2010
New Revision: 901105

URL: http://svn.apache.org/viewvc?rev=901105&view=rev
Log:
GERONIMO-5038 counteract felix's URLDecoder.decode(location) with an opposite encode

Modified:
    geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java

Modified: geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java?rev=901105&r1=901104&r2=901105&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/DeploymentContext.java
Wed Jan 20 08:43:46 2010
@@ -26,6 +26,7 @@
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
+import java.net.URLEncoder;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
@@ -212,7 +213,7 @@
             createTempManifest();
             createTempPluginMetadata();
             JarUtils.jarDirectory(baseDir, tempBundleFile);
-            String location = "reference:file:" + tempBundleFile.getAbsolutePath();
+            String location = "reference:file:" + URLEncoder.encode(tempBundleFile.getAbsolutePath(),
"UTF-8");
             tempBundle = bundleContext.installBundle(location);
             if (BundleUtils.canStart(tempBundle)) {
                 tempBundle.start(Bundle.START_TRANSIENT);



Mime
View raw message