Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23190

[GSS](7.4.z) CXF-8655 - Incorrect XSD resolution when the file name is the same in different folders

XMLWordPrintable

      The attached gradle project contains a WSDL file which imports a XSD and it, in turn, imports another two XSD files with the same name but located in different directories. It triggers incorrect resolution of the XSD files. The structure is the following:

      1) MyWebservice.wsdl
         1.1) imports schema/MyWebservice.xsd -> schema/MyWebservice.xsd
              1.1.1) imports ../../../common/common.xsd -> ../../common/common.xsd
              1.1.2) imports ../../common/common.xsd -> ../common/common.xsd
                     1.1.2.1) imports ../../common/common.xsd -> ../../common/common.xsd
      

      The resulting imports are:

      1) http://localhost:8080/wsdl-test/MyWebservice?wsdl (OK)
         1.1) http://localhost:8080/wsdl-test/MyWebservice?xsd=schema/MyWebservice.xsd (OK)
              1.1.1) http://localhost:8080/wsdl-test/MyWebservice?xsd=../../common/common.xsd (KO)
              1.1.2) http://localhost:8080/wsdl-test/MyWebservice?xsd=../common/common.xsd (OK)
                     1.1.2.1) http://localhost:8080/wsdl-test/MyWebservice?xsd=../../common/common.xsd (KO)
      

      The URL http://localhost:8080/wsdl-test/MyWebservice?xsd=../../common/common.xsd in 1.1.1 returns invalid content. The content is the file in 1.1.2 (not 1.1.1) and besides the contained import is not rewritten in its location.

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: