cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1521175 - /cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java
Date Mon, 09 Sep 2013 16:16:41 GMT
Author: dkulp
Date: Mon Sep  9 16:16:41 2013
New Revision: 1521175

URL: http://svn.apache.org/r1521175
Log:
Guard against an invalid URI

Modified:
    cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java

Modified: cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java?rev=1521175&r1=1521174&r2=1521175&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java
(original)
+++ cxf/trunk/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/JavascriptGetInterceptor.java
Mon Sep  9 16:16:41 2013
@@ -68,7 +68,14 @@ public class JavascriptGetInterceptor ex
             return;
         }
         String baseUri = (String)message.get(Message.REQUEST_URL);
-        URI uri = URI.create(baseUri);
+        URI uri = null;
+        
+        try {
+            uri = URI.create(baseUri);
+        } catch (IllegalArgumentException iae) {
+            //invalid URI, ignore and continue
+            return;
+        }
         Map<String, String> map = UrlUtils.parseQueryString(query);
         if (isRecognizedQuery(map, uri, message.getExchange().getEndpoint().getEndpointInfo()))
{
             try {
@@ -83,7 +90,7 @@ public class JavascriptGetInterceptor ex
             } catch (IOException ioe) {
                 throw new Fault(ioe);
             }
-        }        
+        }
     }
     
     private boolean isRecognizedQuery(Map<String, String> map, URI uri, EndpointInfo
endpointInfo) {



Mime
View raw message