geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r586830 - /geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
Date Sun, 21 Oct 2007 02:46:39 GMT
Author: gawor
Date: Sat Oct 20 19:46:38 2007
New Revision: 586830

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

Modified:
    geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java

Modified: geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java?rev=586830&r1=586829&r2=586830&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
(original)
+++ geronimo/server/trunk/plugins/console/console-base-portlets/src/main/java/org/apache/geronimo/console/car/AddRepositoryHandler.java
Sat Oct 20 19:46:38 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