Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F4B2F5D for ; Tue, 3 May 2011 05:39:40 +0000 (UTC) Received: (qmail 95645 invoked by uid 500); 3 May 2011 05:39:38 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 94711 invoked by uid 500); 3 May 2011 05:39:34 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 94694 invoked by uid 99); 3 May 2011 05:39:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 05:39:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 05:39:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1B00A23889EC; Tue, 3 May 2011 05:39:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1098915 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java Date: Tue, 03 May 2011 05:39:10 -0000 To: commits@cxf.apache.org From: ffang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110503053910.1B00A23889EC@eris.apache.org> Author: ffang Date: Tue May 3 05:39:09 2011 New Revision: 1098915 URL: http://svn.apache.org/viewvc?rev=1098915&view=rev Log: [CXF-3480]URIMappingInterceptor and ArrayIndexOutOfBounds Error Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java?rev=1098915&r1=1098914&r2=1098915&view=diff ============================================================================== --- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java (original) +++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/URIMappingInterceptor.java Tue May 3 05:39:09 2011 @@ -314,8 +314,10 @@ public class URIMappingInterceptor exten if (!StringUtils.isEmpty(query)) { List 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; }