tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r569245 - /incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Date Fri, 24 Aug 2007 04:56:01 GMT
Author: lresende
Date: Thu Aug 23 21:56:00 2007
New Revision: 569245

URL: http://svn.apache.org/viewvc?rev=569245&view=rev
Log:
TUSCANY-1567 - Encoding spaces on the contribution URL to avoid URISyntaxException

Modified:
    incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java

Modified: incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java?rev=569245&r1=569244&r2=569245&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
(original)
+++ incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Thu Aug 23 21:56:00 2007
@@ -245,6 +245,8 @@
     private URL getContributionLocation(ClassLoader classLoader, String contributionPath,
String[] composites)
         throws MalformedURLException {
         if (contributionPath != null && contributionPath.length() > 0) {
+            //encode spaces as they would cause URISyntaxException
+            contributionPath = contributionPath.replace(" ", "%20");
             URI contributionURI = URI.create(contributionPath);
             if (contributionURI.isAbsolute() || composites.length == 0) {
                 return new URL(contributionPath);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message