Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16F7374BF for ; Mon, 10 Oct 2011 09:18:55 +0000 (UTC) Received: (qmail 81065 invoked by uid 500); 10 Oct 2011 09:18:52 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 80895 invoked by uid 500); 10 Oct 2011 09:18:52 -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 80596 invoked by uid 99); 10 Oct 2011 09:18:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 09:18:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Mon, 10 Oct 2011 09:18:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 83274300FF5 for ; Mon, 10 Oct 2011 09:18:30 +0000 (UTC) Date: Mon, 10 Oct 2011 09:18:30 +0000 (UTC) From: "Amila Chinthaka Suriarachchi (Commented) (JIRA)" To: java-dev@axis.apache.org Message-ID: <2005521964.14083.1318238310538.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <746385903.236.1317479493996.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-5157) Able to access wsdl even if the "WSDL" is in uppercase. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123966#comment-13123966 ] Amila Chinthaka Suriarachchi commented on AXIS2-5157: ----------------------------------------------------- I think you can use a tree set instead of private static final Set metadataQueryParamNames = new HashSet( Arrays.asList("wsdl2", "wsdl", "xsd", "policy")); i.e Comparator comparator = new Comparator(){ public int compare(Object o1, Object o2) { String string1 = (String) o1; String string2 = (String) o2; return string1.compareToIgnoreCase(string2); } }; TreeSet treeSet = new TreeSet(comparator); treeSet.add("wsdl2"); treeSet.add("wsdl"); treeSet.add("xsd"); treeSet.add("policy"); Then for int wsdl2 = query.indexOf("wsdl2"); this should work. int wsdl2 = query.toLowerCase().indexOf("wsdl2"); > Able to access wsdl even if the "WSDL" is in uppercase. > ------------------------------------------------------- > > Key: AXIS2-5157 > URL: https://issues.apache.org/jira/browse/AXIS2-5157 > Project: Axis2 > Issue Type: Improvement > Components: transports > Affects Versions: 1.7.0 > Reporter: Shameera Rathnayaka > Assignee: Shameera Rathnayaka > Priority: Minor > Fix For: 1.7.0 > > Attachments: AXIS2-5157.patch > > > In Axis 1, we could access a WSDL even if the "WSDL" is in uppercase. But in Axis 2, we cannot access WSDL with upper case, It gives the following response in the browser. > The endpoint reference (EPR) for the Operation not found is /axis2/services/?WSDL and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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