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

Unable to load Schematron XSLT templates on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.3, 2.19.0
    • 2.17.7, 2.18.4, 2.19.0
    • camel-schematron
    • None
    • Unknown

    Description

      Similar to CAMEL-8504. ClassPathURIResolver does:

      InputStream stream = ClassPathURIResolver.class.getClassLoader()      
          .getResourceAsStream(rulesDir.concat(File.separator).concat(href));
      

      Depending on the ClassLoader implementation, platform dependent paths for resource lookups are not guaranteed to work (which arguably could be considered a bug in the ClassLoader impl).

      Looking at the git history, it seems this code has swapped between using File.separator and "/" a few times now. However, I see no clear reason why we need to use File.separator in the resource lookup. "/" should work perfectly fine in all cases.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: