geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r586834 - /geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
Date Sun, 21 Oct 2007 02:55:43 GMT
Author: gawor
Date: Sat Oct 20 19:55:42 2007
New Revision: 586834

URL: http://svn.apache.org/viewvc?rev=586834&view=rev
Log:
remove whitespace from url and encode spaces. fixes GERONIMO-3478

Modified:
    geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java

Modified: geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java?rev=586834&r1=586833&r2=586834&view=diff
==============================================================================
--- geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
(original)
+++ geronimo/server/branches/2.0/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
Sat Oct 20 19:55:42 2007
@@ -80,9 +80,12 @@
 
 
     private boolean addRepository(String repo, ActionRequest request, ActionResponse response)
throws IOException {
+        repo = repo.trim();
+        repo = repo.replaceAll(" ", "%20");
         if(!repo.endsWith("/")) {
             repo = repo+"/";
         }
+
         PluginRepositoryList[] lists = PortletManager.getCurrentServer(request).getPluginRepositoryLists();
 
         // Check for duplicates



Mime
View raw message