You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <ji...@apache.org> on 2010/12/07 04:43:13 UTC

[jira] Updated: (XMLCOMMONS-28) Resolver generates an incorrect base URL when user.dir is "/"

     [ https://issues.apache.org/jira/browse/XMLCOMMONS-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XMLCOMMONS-28:
-------------------------------------------

    Affects Version/s:     (was: 1.x)
                       XML Commons Resolver 1.1.0

> Resolver generates an incorrect base URL when user.dir is "/"
> -------------------------------------------------------------
>
>                 Key: XMLCOMMONS-28
>                 URL: https://issues.apache.org/jira/browse/XMLCOMMONS-28
>             Project: XmlCommons
>          Issue Type: Bug
>          Components: XML Commons Resolver (resolver.jar)
>    Affects Versions: XML Commons Resolver 1.1.0
>         Environment: Operating System: All
> Platform: Macintosh
>            Reporter: Paul Merchant, Jr.
>            Assignee: Commons Developers Mailing List
>         Attachments: xml-commons-28719.patch
>
>
> 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".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xml-commons-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: xml-commons-dev-help@xerces.apache.org