cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Chantereau (JIRA)" <>
Subject [jira] [Created] (CXF-6527) WSDLRefValidator reject valid target reference URI/IRI
Date Mon, 10 Aug 2015 14:44:45 GMT
Romain Chantereau created CXF-6527:

             Summary: WSDLRefValidator reject valid target reference URI/IRI
                 Key: CXF-6527
             Project: CXF
          Issue Type: Bug
          Components: Tooling
            Reporter: Romain Chantereau
            Priority: Minor

When a target namespace have “:” in the path part of the URI, the validator reject the

This is due to this piece of code at line 137 of {{tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/}}

private void checkTargetNamespace(String path) {
     try {
        if (new URL(path).getPath().indexOf(":") != -1) {
            throw new ToolException(": is not a valid char in the targetNamespace");
   } catch (MalformedURLException e) {
        // do nothing

I checked the following specifications:
* [XML namespace|]
* [URI|]
* [IRI|]
* [WSDL 2.0 Target namespace|]
* [WSDL service definition|]

and nothing forbids having a target namespace like the following one:

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 period (before going
to git), then I was not able to find out the reason behind this explicit check.

Could fix this bug or explain why there is a such limitation?

This message was sent by Atlassian JIRA

View raw message