Author: chathura
Date: Mon Jan 14 02:27:01 2008
New Revision: 12208

Log:


Fixing a URL encoding problem.



Modified:
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java
    (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/servlet/RegistryServlet.java
    Mon Jan 14 02:27:01 2008
@@ -48,6 +48,7 @@
 import javax.sql.DataSource;
 import java.io.FileOutputStream;
 import java.io.IOException;
+import java.net.URLDecoder;
 
 /** Servlet for providing REST API for the registry. */
 public class RegistryServlet extends HttpServlet {
@@ -187,7 +188,8 @@
             throws ServletException, IOException {
         initContextRoot(request);
 
-        String uri = request.getRequestURI();
+        String uri = URLDecoder.decode(request.getRequestURI(), "UTF-8");
+        
         String controlPart = uri.substring(contextRoot.length());
 
         if (controlPart.startsWith(

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to