Uploaded image for project: 'XML Commons'
  1. XML Commons
  2. XMLCOMMONS-28

Resolver generates an incorrect base URL when user.dir is "/"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • XML Commons Resolver 1.1.0
    • None
    • XML Commons Resolver
    • None
    • Operating System: All
      Platform: Macintosh
    • 28719

    Description

      In order to create a URL object, org.apache.xml.resolver.Catalog.parseCatalogFile first constructs
      a URL for the catalog's current working directory from the string
      "file:"System.getProperty("user.dir")"/
      basename". If the user.dir property is "/", the URL constructed appears to have the host name
      "basename": "file://basename". This causes an unknown host error to be thrown later in the function.
      The code should check for this case and avoid appending an additional
      "/" before "basename".

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paulmer@mikoteal.dartmouth.edu Paul Merchant, Jr.
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: