Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1033

Drive letter gets lost in URL resolution in SystemIDResolver#getAbsoluteURI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.7.1
    • None
    • Other
    • None
    • Operating System: All
      Platform: PC
    • 9398

    Description

      I think I found a nasty regression, though I don't know when it could have
      occured:

      In my URIResolver.resolve code, my input is:
      In URIResolver ==> href: /urltest/xsl/books.xsl, base:
      file:///e:\urltest\javax.xml.transform.dom.DOMSource
      When I call:
      String urlString = org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(href,
      base);
      I get:
      resolved URI: file:///urltest/xsl/books.xsl
      ...which is clearly incorrect, because the drive letter is missing.
      On my test program I then get:
      test program --> Error! File
      file:///e:\urltest\javax.xml.transform.dom.DOMSource, line# 0, column# 0; Had
      IO Exception with stylesheet file: /urltest/xsl/books.xsl

      If I hack in the drive letter, it runs fine.

      Attachments

        Activity

          People

            scott_boag@lotus.com Scott Boag
            scott_boag@lotus.com Scott Boag
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: