cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1098921 - in /cxf/branches/2.3.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Date Tue, 03 May 2011 05:52:43 GMT
Author: ffang
Date: Tue May  3 05:52:43 2011
New Revision: 1098921

URL: http://svn.apache.org/viewvc?rev=1098921&view=rev
Log:
Merged revisions 1098915 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1098915 | ffang | 2011-05-03 13:39:09 +0800 (二, 03  5 2011) | 1 line
  
  [CXF-3480]URIMappingInterceptor and ArrayIndexOutOfBounds Error
........

Modified:
    cxf/branches/2.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java

Propchange: cxf/branches/2.3.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java?rev=1098921&r1=1098920&r2=1098921&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
(original)
+++ cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java
Tue May  3 05:52:43 2011
@@ -314,8 +314,10 @@ public class URIMappingInterceptor exten
         if (!StringUtils.isEmpty(query)) {            
             List<String> parts = Arrays.asList(query.split("&"));
             for (String part : parts) {
-                String[] keyValue = part.split("=");
-                queries.put(keyValue[0], uriDecode(keyValue[1]));
+                if (part.contains("=")) {
+                    String[] keyValue = part.split("=");
+                    queries.put(keyValue[0], uriDecode(keyValue[1]));
+                }
             }
             return queries;
         }



Mime
View raw message