Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8655

Incorrect XSD resolution when the file name is the same in different folders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0, 3.3.12, 3.4.5
    • 3.5.2, 3.4.7, 4.0.0
    • Simple Frontend
    • None
    • Unknown

    Description

      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.
       

      Steps To reproduce:

      Attachments

        1. wsdl-test.zip
          10 kB
          Ricardo Martin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rickyepoderi Ricardo Martin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: