Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5321

Validator Component Fails on XSD with Classpath Relative Imports

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.0
    • 2.9.3, 2.10.0
    • None
    • None
    • Unknown

    Description

      When using the Validator Component with an XSD file from a Jar that contains a relative import, the component will throw a FileNotFoundException.

      This is due to the ObjectHelper.loadResourceAsStream(String) operation attempting to load the classpath resource using file path semantics that will not resolve canonically.

      Test case and patch to follow.

      Thread Reference

      Best Regards,
      Scott England-Sullivan
      http://fusesource.com

      Attachments

        1. camel-validator-test.tar.gz
          14 kB
          Scott England-Sullivan
        2. CAMEL-5321.patch
          8 kB
          Scott England-Sullivan

        Issue Links

          Activity

            People

              njiang Willem Jiang
              sully6768 Scott England-Sullivan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: