Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 81874 invoked from network); 14 Apr 2011 10:40:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 10:40:45 -0000 Received: (qmail 23506 invoked by uid 500); 14 Apr 2011 10:40:45 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 23317 invoked by uid 500); 14 Apr 2011 10:40:44 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 23309 invoked by uid 99); 14 Apr 2011 10:40:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 10:40:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 10:40:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CB2D9A1CB1 for ; Thu, 14 Apr 2011 10:40:05 +0000 (UTC) Date: Thu, 14 Apr 2011 10:40:05 +0000 (UTC) From: =?utf-8?Q?Jaros=C5=82aw_Ba=C5=82ut_=28JIRA=29?= To: java-dev@axis.apache.org Message-ID: <2068255803.57386.1302777605828.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (AXIS2-5004) Missing backslash in a regular expression causes improper operation's name calculation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Missing backslash in a regular expression causes improper operation's name = calculation ---------------------------------------------------------------------------= ----------- Key: AXIS2-5004 URL: https://issues.apache.org/jira/browse/AXIS2-5004 Project: Axis2 Issue Type: Bug Components: kernel Affects Versions: 1.5.4 Reporter: Jaros=C5=82aw Ba=C5=82ut The class org.apache.axis2.util.Utils implements the getOperationName(Strin= g path, String serviceName) method, which purpose is to "Compute the operat= ion path from request URI using the servince name". This method is called d= uring handling of REST style requests and contains the following line of co= de: temp =3D path.split(serviceName + "."); which is supposed to split the request URI on the boundary of the "." (service name followed by the dot character). The regular expressi= on (serviceName + ".") is missing a backslash character before the dot. Thi= s effectively means that the regular expression matches the sequence "" instead of "". Descr= ibed behaviour causes problems, when the method's name contains service's n= ame (e.g. when the service is called "echo" and the method is called "echoS= tring"). The line of code mentioned above should look like:=20 temp =3D path.split(serviceName + "\\."); -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org