Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0E354200BA0 for ; Fri, 14 Oct 2016 16:13:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0B5AC160AF7; Fri, 14 Oct 2016 14:13:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 53B41160AD0 for ; Fri, 14 Oct 2016 16:13:22 +0200 (CEST) Received: (qmail 83545 invoked by uid 500); 14 Oct 2016 14:13:21 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 83501 invoked by uid 99); 14 Oct 2016 14:13:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 14:13:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5F4372C4C73 for ; Fri, 14 Oct 2016 14:13:21 +0000 (UTC) Date: Fri, 14 Oct 2016 14:13:21 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CXF-6527) WSDLRefValidator reject valid target reference URI/IRI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 14:13:23 -0000 [ https://issues.apache.org/jira/browse/CXF-6527?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh closed CXF-6527. ------------------------------------ > WSDLRefValidator reject valid target reference URI/IRI > ------------------------------------------------------ > > Key: CXF-6527 > URL: https://issues.apache.org/jira/browse/CXF-6527 > Project: CXF > Issue Type: Bug > Components: Tooling > Reporter: Romain Chantereau > Assignee: Akitoshi Yoshida > Priority: Minor > Fix For: 3.1.3, 2.7.18, 3.0.7 > > > When a target namespace have =E2=80=9C:=E2=80=9D in the path part of the = URI, the validator reject the WSDL. > This is due to this piece of code at line 137 of {{tools/validator/src/ma= in/java/org/apache/cxf/tools/validator/internal/WSDLRefValidator.java}} fil= e. > {code:java} > private void checkTargetNamespace(String path) { > try { > if (new URL(path).getPath().indexOf(":") !=3D -1) { > throw new ToolException(": is not a valid char in the targetN= amespace"); > } > } catch (MalformedURLException e) { > // do nothing > } > } > {code} > I checked the following specifications: > * [XML namespace|http://www.w3.org/TR/xml-names/] > * [URI|http://www.rfc-editor.org/rfc/rfc3986.txt] > * [IRI|http://www.ietf.org/rfc/rfc3987.txt] > * [WSDL 2.0 Target namespace|http://www.w3.org/TR/wsdl20/#Description_tar= getnamespace_attribute] > * [WSDL=C2=A0service definition|http://www.w3.org/TR/wsdl#_service] > and nothing forbids having a target namespace like the following one: > {{http://host:port/part/part/resource:resource}} > Then the validator add an extra constraint on the WSDL format without any= explanation. > I looked into the source history, this validation is here since a long pe= riod (before going to git), then I was not able to find out the reason behi= nd this explicit check. > Could fix this bug or explain why there is a such limitation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)